-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (25 loc) · 853 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
dist: xenial
language: ruby
cache:
bundler: true
directories:
- ~/go
rvm:
- 2.5
install:
- mkdir -p ~/gopath/src/github.com/flant/ && mv $TRAVIS_BUILD_DIR ~/gopath/src/github.com/flant/dapp && ln -fs ~/gopath/src/github.com/flant/dapp $TRAVIS_BUILD_DIR
- if [ ! -f ~/go/installed ]; then wget https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz -O /tmp/go.tar.gz ; tar -C ~/ -xzf /tmp/go.tar.gz ; touch ~/go/installed ; fi
- bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
- export GOROOT=~/go
- export GOPATH=~/gopath
- export PATH="$GOROOT/bin:$GOPATH/bin:$PATH"
- export CGO_ENABLED=0
- export GOOS=linux
- which go
- go version
- if [[ "x$TRAVIS_TAG" != "x" ]] ; then ./go-get.sh && ./go-build.sh ; fi
deploy:
provider: script
script: ./publish.sh --tag $TRAVIS_TAG
on:
tags: true