forked from kerberos-io/machinery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·44 lines (36 loc) · 1.03 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
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:
recipients:
irc: "chat.freenode.net#kerberos.io"
email:
on_success: always
on_failure: always
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