-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (44 loc) · 1.2 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
language: go
branches:
only:
- master
- development
- travis
- /\d+\.\d+\.\d+/
go:
- 1.12.x
- tip
env:
- GO111MODULE=on
services:
- docker
matrix:
# It's ok if our code fails on unstable development versions of Go.
allow_failures:
- go: tip
# Don't wait for tip tests to finish. Mark the tests run green if the
# tests pass on the stable versions of Go.
fast_finish: true
git:
depth: 3
install: true
before_script:
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
script:
# Install all tooling
- bash ./bin/install_tools.sh || travis_terminate 1;
# Login to IBMCloud and export KUBECONFIG env variable.
- source ./bin/ibmcloud_login.sh || travis_terminate 1;
# Build executable, build docker image, and deploy to cluster
- bash ./bin/build_deploy.sh || travis_terminate 1;
# Run coverage on unit tests
- go test -coverprofile=coverage.out ./adapter/... || travis_terminate 1;
# Run all integration tests
- go test -v ./tests/integration/... || travis_terminate 1;
after_success:
- $HOME/gopath/bin/goveralls -service=travis-ci -coverprofile=coverage.out
notifications:
email:
on_success: always
on_failure: always