-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
36 lines (31 loc) · 1.1 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
language: go
sudo: required
go:
- 1.21.x
go_import_path: github.com/vaporz/turbo
before_install:
# execute all of the commands which need to be executed
# before installing dependencies
- ./.travis/install-thrift.sh
- ./.travis/install-protoc.sh 3.1.0
- go get github.com/mattn/goveralls
install:
# install all of the dependencies you need here
- export GO111MODULE=on
- export GOBIN="$HOME/local/bin"
- go get github.com/golang/protobuf/protoc-gen-go
- cd $GOPATH/src/github.com/vaporz/turbo
- go mod tidy
- make install
before_script:
# execute all of the commands which need to be executed
# before running actual tests
# for example:
#- mysql -u root -e 'CREATE DATABASE test'
#- bin/doctrine-migrations migrations:migrate
script:
# execute all of the commands which should make the build pass or fail
- $HOME/gopath/bin/goveralls -service=travis-ci -ignore=protoc-gen-buildfields/*,test/testservice/*,test/testservice/*/*,test/testservice/*/*/*,test/testservice/*/*/*/*/*,test/testservice/*/*/*/*/*/*,turbo/*,turbo/cmd/root.go,*.pb.go
env:
global:
- "PATH=$PATH:$HOME/local/bin"