-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
38 lines (29 loc) · 868 Bytes
/
.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
language: go
services:
- docker
sudo: required
go:
- 1.9
before_install:
- sudo apt-get -qq update
- sudo apt-get install -o Dpkg::Options::="--force-confold" --force-yes -y -y docker-ce
- curl -L https://github.com/docker/compose/releases/download/1.13.0/docker-compose-`uname -s`-`uname -m` | sudo tee /usr/local/bin/docker-compose > /dev/null
- sudo chmod +x /usr/local/bin/docker-compose
- docker-compose -v
- docker -v
install:
- make
- go get github.com/mattn/goveralls
before_script:
- docker-compose up --build -d
- sleep 2
script:
- make integration-tests
- make documentation
- make coverage
after_success:
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- make build-docker
- make push-docker
after_script:
- docker-compose down