forked from GolosChain/golos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (37 loc) · 1007 Bytes
/
.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: required
language: cpp
services:
- docker
addons:
ssh_known_hosts: developers.golos.io
apt:
packages:
- doxygen
- doxygen-doc
- doxygen-latex
- doxygen-gui
- graphviz
before_install:
- sudo apt-get install python-software-properties
- sudo apt-add-repository -y ppa:libreoffice/libreoffice-4-2
- sudo apt-get update
- sudo apt-get install -y doxygen
- echo "$TRAVIS_TAG"
- echo "$TRAVIS_BRANCH"
script:
- if [ -n "${TRAVIS_TAG}" ]; then
docker build -t goloschain/golos:"$TRAVIS_TAG" . ;
else
docker build -t goloschain/golos:latest . ;
fi
- docker images
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker push goloschain/golos:latest;
bash deploy/deploy.sh;
fi
- if [ -n "$TRAVIS_TAG" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker push goloschain/golos:"$TRAVIS_TAG";
fi