forked from upper/db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (48 loc) · 1.28 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
sudo: required
notifications:
email: false
language: go
go:
- "1.8"
- "1.9"
# - "tip"
services:
- docker
- mongodb
- postgresql
addons:
postgresql: 9.5
apt:
sources:
- mongodb-3.0-precise
packages:
- freetds-bin
- mongodb-org-server
- mongodb-org-shell
before_install:
- sudo service mysql stop
- docker pull microsoft/mssql-server-linux:latest
- docker pull mysql:5.7
- docker run -d -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=my$Password' --name mssql -p 1433:1433 -d microsoft/mssql-server-linux:latest
- docker run -d -e "MYSQL_USER=upperio_tests" -e "MYSQL_PASSWORD=upperio_secret" -e "MYSQL_ALLOW_EMPTY_PASSWORD=1" -e "MYSQL_DATABASE=upperio_tests" -p 3306:3306 --name mysql mysql:5.7
- docker ps -a
- sleep 30
env:
global:
- MAKEFLAGS="-j4"
- GOARCH=amd64
- DB_HOST=127.0.0.1
matrix:
- TEST_CMD="make benchmark test-main"
- TEST_CMD="make test-adapters"
install:
- mkdir -p $GOPATH/src/upper.io
- mv $PWD $GOPATH/src/upper.io/db.v3
- cd $GOPATH/src/upper.io/db.v3
- go get -t -v -d ./...
- go get -v github.com/cznic/ql/ql
- export TRAVIS_BUILD_DIR=$GOPATH/src/upper.io/db.v3
before_script:
- docker exec -it mysql bash -c 'mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql'
script:
- ${TEST_CMD}