forked from kerberos-io/machinery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·34 lines (34 loc) · 1.11 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
sudo:
- false
os:
- linux
language:
- cpp
services:
- docker
compiler:
- gcc
before_install:
- sudo apt-get update
- sudo apt-get install x264 v4l-utils
script: mkdir build && cd build && cmake .. && make && make check && sudo make install
notifications:
email:
recipients:
on_success: always
on_failure: always
irc:
channels:
- chat.freenode.net#kerberos.io
on_success: always
on_failure: always
slack:
secure: NuArqSKx18HzjhX1il38z3Kz348WyG0RVUNCLuLWeQpPvGI4UizA4Qo+XoLHKkaPT5JtROd09UOYZtqbQNAdeHY3xNZAoJTUkAI9oGi/+10WqJ9emcY1F5CxBT93CFtrUfoHTdeqJCFWht1SvCBosKFOQGfcw7ooD5i2ND6Oc/Y=
after_success:
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cd ../docker; docker login -u="$DOCKER_USERNAME"
-p="$DOCKER_PASSWORD"; if [ "$TRAVIS_BRANCH" == "master" ]; then docker build -t
machinery .; docker tag machinery kerberos/machinery:latest; docker push kerberos/machinery:latest;
else docker build --build-arg APP_ENV="$TRAVIS_BRANCH" -t machinery .; docker tag
machinery kerberos/machinery:$TRAVIS_BRANCH; docker push kerberos/machinery:$TRAVIS_BRANCH;
fi fi