forked from cadence-workflow/cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (51 loc) · 1.51 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
59
60
61
62
sudo: required
language: go
dist: trusty
go:
- 1.11.1
matrix:
include:
- go: "1.11.1"
services:
- mysql
env:
- TEST_SUITE=unit
- go: "1.11.1"
env:
- TEST_SUITE=integration
- go: "1.11.1"
env:
- TEST_SUITE=integration
- EVENTSV2=true
- go: "1.11.1"
env:
- TEST_SUITE=xdc
- ZOOKEEPER_PEERS=localhost:2181
- KAFKA_PEERS=localhost:9092
addons:
apt:
packages:
- gettext-base
- libyaml-dev
- openjdk-8-jre
- python
- python-dev
- python-pip
before_install:
- pip install --user ccm
install:
- go get -u github.com/Masterminds/glide
- go get -u golang.org/x/lint/golint
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
- ccm create test -v 3.9 -n 1 -s
- if [ "$TEST_SUITE" == "xdc" ]; then bash ./scripts/travis/install-xdc-deps.sh ; fi
before_script:
- if [ "$TEST_SUITE" == "unit" ]; then bash ./scripts/travis/setup-mysql.sh ; fi
script:
- if [ "$TEST_SUITE" == "unit" ]; then travis_wait 20 make cover_ci ; else echo 'skipping unit tests'; fi
- if [ "$TEST_SUITE" == "integration" ]; then travis_wait 20 make cover_integration_ci ; else echo 'skipping integration tests'; fi
- if [ "$TEST_SUITE" == "xdc" ]; then travis_wait 20 make cover_xdc_ci ; else echo 'skipping xdc tests'; fi
after_success:
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)