-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (31 loc) · 894 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
28
29
30
31
32
33
34
35
36
language: go
os: linux
go:
# - 1.9.x
- 1.11.x
# - master
install: true
before_deploy:
# - GOOS=linux GOARCH=amd64 go build -o ./bin/linux_amd64
matrix:
# It's ok if our code fails on unstable development versions of Go.
allow_failures:
- go: master
# Don't wait for tip tests to finish. Mark the test run green if the
# tests pass on the stable versions of Go.
fast_finish: true
before_script:
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
- GO111MODULE=on
# - go get github.com/dgrijalva/jwt-go
# - go get github.com/gin-contrib/cors
# - go get github.com/gin-gonic/gin
# - go get github.com/go-sql-driver/mysql
# - go get github.com/gorilla/feeds
# - go get github.com/jinzhu/gorm
# - go get github.com/kardianos/govendor
# - export GOPATH=$TRAVIS_BUILD_DIR:$GOPATH
# test build
- go build -o ./bin/gopost
#use default script
#script: