-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
43 lines (35 loc) · 1.21 KB
/
.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
language: go
go:
- 1.15
before_script:
- go get -t ./...
script:
- export UNFORMATTED=`gofmt -l .`
- export TNT_LOG_DIR=/home/travis/tntlog
- if [[ ! -z "$UNFORMATTED" ]]; then echo "The following files are not formatted:" && echo "$UNFORMATTED" && exit 1; fi
- go vet
- $HOME/gopath/bin/golint
- go test -v -timeout 20s
- go test -bench=. -timeout 20s
before_install:
- curl "http://download.tarantool.org/tarantool/$TARANTOOL_VER/gpgkey" | sudo apt-key add -
- export RELEASE=`lsb_release -c -s`
- sudo apt-get -y install apt-transport-https
- sudo rm -f /etc/apt/sources.list.d/*tarantool*.list
- echo "deb http://download.tarantool.org/tarantool/$TARANTOOL_VER/ubuntu/ $RELEASE main" | sudo tee -a /etc/apt/sources.list.d/tarantool.list
- echo "deb-src http://download.tarantool.org/tarantool/$TARANTOOL_VER/ubuntu/ $RELEASE main" | sudo tee -a /etc/apt/sources.list.d/tarantool.list
install:
- sudo apt-get update
- sudo apt-get -y install tarantool
- go get golang.org/x/lint/golint
- mkdir -p /home/travis/tntlog
matrix:
include:
- env: TARANTOOL_VER=1.6
- env: TARANTOOL_VER=1.10
- env: TARANTOOL_VER=2.6
- env: TARANTOOL_VER=2.11
after_failure:
- cat /home/travis/tntlog/*
notifications:
email: false