-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
41 lines (35 loc) · 1.21 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
sudo: required
language: python
python:
- "2.6"
- "2.7"
- "3.4"
- "3.5"
- "nightly"
- "pypy"
- "pypy3"
services:
- docker
before_install:
- if [[ $TRAVIS_PYTHON_VERSION == "3.5" ]]; then export DEPLOY=true; else export DEPLOY=false; fi
- sudo make travis
- sudo sh -c "mkdir -p /etc/chains/devices; wget https://raw.githubusercontent.com/ChainsAutomation/chains/master/misc/examples/etc-master/chains.conf -O /etc/chains/chains.conf"
- bin/dockerfile-assemble.py master
- docker version
- $DEPLOY && docker build --no-cache -t chains/chains-master . || echo "NOT BUILDING"
- $DEPLOY && docker run -d chains/chains-master || echo "NOT RUNNING"
script:
- $DEPLOY && echo "Builded container and ready to deploy" || echo "Only running tests"
- $DEPLOY && docker ps -a || echo ""
- $DEPLOY && sleep 45 || echo ""
- $DEPLOY && DOCKERID=`docker ps -q`; docker exec $DOCKERID /usr/bin/supervisorctl status > output || echo ""
- $DEPLOY && cat output || echo ""
- $DEPLOY && cat output | grep "FATAL" && exit 1 || echo "Every process started correctly"
after_success:
- ./deploy.sh
notifications:
irc:
channels:
- "irc.freenode.net#chains"
on_success: always
on_failure: always