-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
43 lines (36 loc) · 1.27 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
language: go
go:
- 1.8.x
addons:
apt:
packages:
- openjdk-8-jre
- mysql-client-5.6
env:
global:
- mysql_user=root
- mysql_password=ci_test
- mysql_host=127.0.0.1
- mysql_port=3306
- db_prefix=ci_
- db_options="parseTime=True&loc=Local"
- OWL_TEST_PROPS="mysql.owl_portal=$mysql_user:$mysql_password@tcp($mysql_host:$mysql_port)/${db_prefix}falcon_portal?$db_options mysql.owl_graph=$mysql_user:$mysql_password@tcp($mysql_host:$mysql_port)/${db_prefix}graph?$db_options"
services:
- docker
before_install:
- sudo /etc/init.d/mysql stop
- docker pull mysql
- docker run --name ci-mysql -e "MYSQL_ROOT_PASSWORD=$mysql_password" -d -p $mysql_host:$mysql_port:3306 mysql:5.7
- scripts/mysql/wait-mysql-ready.sh 3s 16
- cd scripts/mysql
- ./recreate-owl-databases.sh --mysql="-h $mysql_host -P $mysql_port -u$mysql_user -p$mysql_password" --prefix=$db_prefix --yes
- ./patch-owl-databases.sh --prefix=$db_prefix --options="--username=$mysql_user --password=$mysql_password" --mysql_conn=$mysql_host:$mysql_port --yes
- cd $TRAVIS_BUILD_DIR
script:
- make misspell-check
- make fmt-check
- make all
- make pack
- make GO_TEST_COVERAGE_FILE=coverage.txt go-test
after_success:
- bash <(curl -s https://codecov.io/bash)