File tree 2 files changed +20
-12
lines changed
2 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 1
1
language : go
2
2
go :
3
- - 1.8.x
4
- - 1.9.x
5
3
- 1.10.x
6
4
- 1.11.x
5
+ - 1.12.x
7
6
env :
8
7
- NSQ_DOWNLOAD=nsq-0.3.8.linux-amd64.go1.6.2 GOARCH=amd64
9
8
- NSQ_DOWNLOAD=nsq-0.3.8.linux-amd64.go1.6.2 GOARCH=386
10
9
- NSQ_DOWNLOAD=nsq-1.0.0-compat.linux-amd64.go1.8 GOARCH=amd64
11
10
- NSQ_DOWNLOAD=nsq-1.0.0-compat.linux-amd64.go1.8 GOARCH=386
12
11
- NSQ_DOWNLOAD=nsq-1.1.0.linux-amd64.go1.10.3 GOARCH=amd64
13
12
- NSQ_DOWNLOAD=nsq-1.1.0.linux-amd64.go1.10.3 GOARCH=386
14
- install :
15
- - wget -O dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64
16
- - chmod +x dep
17
- - ./dep ensure
18
13
script :
19
- - wget http://bitly-downloads.s3.amazonaws.com/nsq/$NSQ_DOWNLOAD.tar.gz
20
- - tar zxvf $NSQ_DOWNLOAD.tar.gz
21
- - export PATH=$NSQ_DOWNLOAD/bin:$PATH
22
- - pushd $TRAVIS_BUILD_DIR
23
- - ./test.sh
24
- - popd
14
+ - ./travis.sh
25
15
notifications :
26
16
email : false
27
17
sudo : false
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ wget http://bitly-downloads.s3.amazonaws.com/nsq/$NSQ_DOWNLOAD .tar.gz
6
+ tar zxvf $NSQ_DOWNLOAD .tar.gz
7
+ export PATH=$NSQ_DOWNLOAD /bin:$PATH
8
+
9
+ go_minor_version=$( go version | awk ' {print $3}' | awk -F. ' {print $2}' )
10
+ if [[ $go_minor_version -gt 10 ]]; then
11
+ export GO111MODULE=on
12
+ else
13
+ wget -O dep https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64
14
+ chmod +x dep
15
+ ./dep ensure
16
+ fi
17
+
18
+ ./test.sh
You can’t perform that action at this time.
0 commit comments