3939 - cp .travis/docker.cnf ~/.my.cnf
4040 - .travis/wait_mysql.sh
4141 before_script :
42+ - export cross_compile=false
4243 - export MYSQL_TEST_USER=gotest
4344 - export MYSQL_TEST_PASS=secret
4445 - export MYSQL_TEST_ADDR=127.0.0.1:3307
5859 - cp .travis/docker.cnf ~/.my.cnf
5960 - .travis/wait_mysql.sh
6061 before_script :
62+ - export cross_compile=false
6163 - export MYSQL_TEST_USER=gotest
6264 - export MYSQL_TEST_PASS=secret
6365 - export MYSQL_TEST_ADDR=127.0.0.1:3307
7779 - cp .travis/docker.cnf ~/.my.cnf
7880 - .travis/wait_mysql.sh
7981 before_script :
82+ - export cross_compile=false
8083 - export MYSQL_TEST_USER=gotest
8184 - export MYSQL_TEST_PASS=secret
8285 - export MYSQL_TEST_ADDR=127.0.0.1:3307
9699 - cp .travis/docker.cnf ~/.my.cnf
97100 - .travis/wait_mysql.sh
98101 before_script :
102+ - export cross_compile=false
99103 - export MYSQL_TEST_USER=gotest
100104 - export MYSQL_TEST_PASS=secret
101105 - export MYSQL_TEST_ADDR=127.0.0.1:3307
@@ -113,6 +117,7 @@ jobs:
113117 - go get golang.org/x/tools/cmd/cover
114118 - go get github.com/mattn/goveralls
115119 before_script :
120+ - export cross_compile=false
116121 - echo -e "[server]\ninnodb_log_file_size=256MB\ninnodb_buffer_pool_size=512MB\nmax_allowed_packet=16MB\nlocal_infile=1" >> /usr/local/etc/my.cnf
117122 - mysql.server start
118123 - mysql -uroot -e 'CREATE USER gotest IDENTIFIED BY "secret"'
@@ -127,6 +132,6 @@ script:
127132 - go test -v -covermode=count -coverprofile=coverage.out
128133 - go vet ./...
129134 - .travis/gofmt.sh
130- - .travis/complie_check .sh
135+ - if [ "$cross_compile" != "false" ]; then .travis/compile_check .sh; fi
131136after_script :
132137 - $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci
0 commit comments