@@ -3,12 +3,8 @@ language: go
33
44matrix :
55 include :
6- - go : 1.12.7
7- - go : master
8- os : osx
9- env : BUILD_TAGS=
10- allow_failures :
11- - go : master
6+ - go : 1.12.x
7+ - go : 1.13.x
128
139# Install g++-4.8 to support std=c++11 for github.com/google/certificate-transparency/go/merkletree
1410addons :
@@ -24,14 +20,6 @@ install:
2420services :
2521 - mysql
2622 - postgresql
27- before_install :
28- # CFSSL consists of multiple Go packages, which refer to each other by
29- # their absolute GitHub path, e.g. github.com/cloudflare/crypto/pkcs7.
30- # That means, by default, if someone forks the repo and makes changes across
31- # multiple packages within CFSSL, Travis won't pass for the branch on their
32- # own repo. To fix that, we move the directory
33- - mkdir -p $TRAVIS_BUILD_DIR $GOPATH/src/github.com/cloudflare
34- - test ! -d $GOPATH/src/github.com/cloudflare/cfssl && mv $TRAVIS_BUILD_DIR $GOPATH/src/github.com/cloudflare/cfssl || true
3523
3624# Only build pull requests, pushes to the master branch, and branches
3725# starting with `test-`. This is a convenient way to push branches to
@@ -44,41 +32,29 @@ branches:
4432 - /^test-.*$/
4533
4634before_script :
47- - go install ./vendor/golang.org/x/lint/golint
48- - go install ./vendor/github.com/GeertJohan/fgt
35+ - make bin/golint
4936 # Setup DBs + run migrations
50- - go install ./vendor/bitbucket.org/liamstask/goose/cmd/goose
5137 # The sql_mode adjustment is to remove a sql_mode that was added in MySQL 5.7, this mode applies a rule that does:
5238 # > The NO_ZERO_DATE mode affects whether the server permits '0000-00-00' as a valid date.
5339 # https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_no_zero_date
5440 - if [[ $(uname -s) == 'Linux' ]]; then
41+ make bin/goose;
5542 psql -c 'create database certdb_development;' -U postgres;
56- goose -path $GOPATH/src/github.com/cloudflare/cfssl/ certdb/pg up;
43+ ./bin/ goose -path certdb/pg up;
5744 mysql -e 'create database certdb_development;' -u root;
5845 mysql -e 'SET global sql_mode = 0;' -u root;
59- goose -path $GOPATH/src/github.com/cloudflare/cfssl/ certdb/mysql up;
46+ ./bin/ goose -path certdb/mysql up;
6047 fi
48+
6149script :
6250 - ./test.sh
63- notifications :
64- email :
65- recipients :
66- - cbroglie@cloudflare.com
67- - gabriel@cloudflare.com
68- - kyle@cloudflare.com
69- - leland@cloudflare.com
70- - mihir@cloudflare.com
71- - mitul@cloudflare.com
72- - nick@cloudflare.com
73- - nicky@cloudflare.com
74- on_success : never
75- on_failure : change
51+
7652env :
7753 global :
7854 - secure : " OmaaZ3jhU9VQ/0SYpenUJEfnmKy/MwExkefFRpDbkRSu/hTQpxxALAZV5WEHo7gxLRMRI0pytLo7w+lAd2FlX1CNcyY62MUicta/8P2twsxp+lR3v1bJ7dwk6qsDbO7Nvv3BKPCDQCHUkggbAEJaHEQGdLk4ursNEB1aGimuCEc="
79- - GO15VENDOREXPERIMENT=1
55+ - GO111MODULE=on
8056 matrix :
8157 - BUILD_TAGS="postgresql mysql"
8258
8359after_success :
84- - bash <(curl -s https://codecov.io/bash) -f coverprofile.txt
60+ - bash <(curl -s https://codecov.io/bash)
0 commit comments