-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
51 lines (46 loc) · 1.63 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
dist: trusty
language: generic
sudo: required
addons:
apt:
packages:
- pv
- docker-ce
git:
depth: 1
services:
- docker
jobs:
include:
- stage: "Test"
before_install:
- echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
- sudo service docker restart && docker version
before_script:
- make install 2>&1 "$TRAVIS_BUILD_DIR"/install.log | pv > /dev/null -t
script:
- make test-coverage
- make qa
after_success:
- bash <(curl -s https://codecov.io/bash) -y .codecov.yml
- cat "$TRAVIS_BUILD_DIR"/install.log
- stage: "Build Docker Images (stable)"
if: branch = master AND type IN (push, api, cron) AND fork = false
before_install:
- echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
- sudo service docker restart && docker version
before_script:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
script:
- DOCKER_ENV=stable DOCKER_BRANCH="$TRAVIS_BRANCH" make publish-default
- DOCKER_ENV=stable DOCKER_BRANCH="$TRAVIS_BRANCH" make publish-demo
- stage: "Build Docker Images (dev)"
if: branch != master AND type IN (push, api, cron) AND fork = false
before_install:
- echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
- sudo service docker restart && docker version
before_script:
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
script:
- DOCKER_ENV=dev DOCKER_BRANCH="$TRAVIS_BRANCH" make publish-default
- DOCKER_ENV=dev DOCKER_BRANCH="$TRAVIS_BRANCH" make publish-demo