forked from copernet/copernicus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
18 lines (15 loc) · 739 Bytes
/
.travis.yml
File metadata and controls
18 lines (15 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
sudo: required
language: go
services:
- docker
before_install:
- docker build -t copernet/copernicus .
- docker run -it -d --name copernicus -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" -e TRAVIS_BRANCH="$TRAVIS_BRANCH" copernet/copernicus
script:
- docker exec copernicus /bin/bash -c 'cd /go/src/github.com/copernet/copernicus && ./check.sh'
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then docker exec copernicus goveralls -coverprofile=/go/src/github.com/copernet/copernicus/coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN; fi'
- docker exec copernicus /bin/bash -c 'cd /walle && pipenv run python test_runner.py' || ./dockerpush.sh $TRAVIS_JOB_ID
notifications:
email:
on_success: change
on_failure: alwayss