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 2
/
.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: "c8PWe6r9rJ4zllfI78leSnLbWldAtpA/Ux9Pabi4RuqEFJIdnoxRnYnXZD7CTyUiQdIXWUvMqIS0QkN5Sfba8w/C9B+k7TtT6n8fFZXGM2JZjp0ri2IenLboWjwE75noSd19Xdh4XTgzspwpqNz7hNVRVsklQQsv9DVTAcNC6/2sRoJg1TwrnDgasjPGQbKJfr6+AkF5xXizCbj7o6VhDMPfWJby9T5w3s3Tx9Gd0rSvblV5QSj2S74+d1Hezcm4OfRK0wSTGxQO5KLvWx0ki2MgMSYdajnkAI8sqjKlvWAwwEHEd6S0AQUt5nVOQ4CxN1cLDtWBWbwzdU/lnpP3te5FS85RXAwtw8YiXlbtERn7TN8RRA0+Z2d/iogSs38CbhNpaWvBMBB+Tch9yIgOuGYh4SdNJkZ7gw7iuhAPUgyFeNNl7l54W1cGofM/ZYFwoSGyydqG+6W/C40kVfY25MA4qr3laSAmETqtLmUa7iVxLWuLgJOa3/9eZztPh0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