This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
42 lines (36 loc) · 2.83 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
language: cpp
dist: trusty
sudo: required
services:
- docker
addons:
apt:
packages:
- docker-ce
script:
- export TAG=`
if [[ $TRAVIS_PULL_REQUEST == "false" ]] && [[ $TRAVIS_BRANCH == "master" ]]; then
echo "dev";
elif [[ $TRAVIS_PULL_REQUEST == "true" ]]; then
echo $TRAVIS_PULL_REQUEST_BRANCH;
else
echo $TRAVIS_BRANCH;
fi`
- docker build --tag $REPO:$TAG --file Dockerfile .
# TODO: add test
# docker run -t $REPO:$TAG make test
after_success:
- echo "$DOCKER_PASS" | docker login --username "$DOCKER_USER" --password-stdin
- if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then
docker push $REPO:$TAG;
fi
notifications:
slack:
secure: "hyx14THblpZz9sVWjtegBpy77sOtksJvrqMdo7hYJrgLi3naZLV4McMcIanqegIdrCl+RUNC9QyV9F3pJadUhOGK6Dq82fYA/octiT3YvOfr8QB5z0PuzMFEuWWP0xiWJDL5ezRKo7OX1lIOJDq/BGz1gLjQKlI0IzRq9gId0+SddYPNtqMjdu6QjqGL8LS07tMSZMeUbhhMKyZ90eWlmvrzEdQmRrxwgS2FvZc4JJa+8YJR1V6d0bC27Gck41DxJyWzcE88rUljYmFkZEAA3OFb3MtVdmo5vSfU5Sdf8B2NxZBxGSiAsUyBlWZ5StS3VrhcwFZwYGwfuZLBIqYsDq2jc2ovyMj765+1v3VW6QJs6YfBoYZe2wCewOH1dcaAphZPWombwgRFJkxFn3FXAj95/vP74MbNxNy6ABAQed8suo5aTxHQ6Fu4PKdB9lw9xLQ+RPG/y3MIL1qHvJ6YO8Fte3aT0JCf9LVBW3+KmIRzxvbiy55yeP/nmbvSR1i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