-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
30 lines (27 loc) · 2.7 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
sudo: required
language: ruby
services:
- docker
script:
- ls -lah
- docker build -f Dockerfile -t apsl/puput .
- docker-compose up -d
- docker-compose ps
- sleep 10
- docker exec -ti dockerpuput_web_1 python manage.py migrate
- docker exec -ti dockerpuput_web_1 python manage.py puput_initial_data
- wget http://localhost:8000/blog/
notifications:
email:
- gshark@gmail.com
env:
global:
- PUPUT_VERSION=0.4.1
- secure: TQkOBULVRkar7082KBfBTQ/K+VaVxaaaKkfxj4ZPosWWbHJ5++VnX8Y78igE79U1zqXQVkhAmAFSgq2flmepowUHpxnkM5lZnZ8KLG3tq2OVVdZnkbcnOMOFQbVKoJCxIrkZs7DglIjgexgYWtyw1t700SWXgu8U7JFbTiVw3a93+FCHzpEnnqeJBZPPApXcI4sEbAQirtUrGDfVCOsyrDIAV6eufmaKyqT0kmhYawiWMtkxWO3pfcBbtfUfM8epsJA9HAIfY53wSfKUttvkBmv/ZUHEf8gQlOMip5O/XbsC6epzJ/NgJFPW2bu8xOAc580W3/KCyR56K3T6NDDg+d9K+f1TMhQ5TCS6FuYGnFJ4+jUoSms4viRPzhYmwltZPK479JHsxN9NRBJegGL7+6uqwL0YptGBhP8kWudFrMxbCfZ7Xc3znXnnzyTDgOXCdQi82NL8VbuXmLXtp3WVtymcYD7X4WAAWcN/6mAQ+obZnb3J3gL7R2QEZ0f1BKgzhgFx6RQMZmxEGSh0gCRIZdChUVnizfNMLtDK2Yb6RQ6g3QNNY0wdRnQOtlDWWXki/wLOK6kKnHSapupd7ITIOooi0fjlky+4dLVIRQhFZyslufs/WAL1zyOs/MekECNEuTnZAMiN385DvHZVF5187ZQ1LEOoyUxQifjH59zKtSQ=
- secure: C43eDkjq4eqikplm7i3lcmtFEHMuLh2qbKtTF79BXL5FxUE4iIlez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+TdMNhpAhpLm6+MMtcNAAGxUk13CXw3g9SG4UCneXTzc7iDf9rt5wrsKS4Tj2MTpDvMoUESMwh6aUhFC07ULKClmmTBab4KR1xWj4/FgPPr576dd0eFLo9/8lB+sffMnJS1QoBrUFS2l71k/nazcMAOpDYhnqLAL3ODQxadEBqwjH/Ff0JW67U05WSHFLjm8P2LQUJ0r5udRAGHnJEx7v4jCCAcLZY4BXS6kUrgSfefWf/qPGCLtPkThKnMiK+UM4Kc=
after_success:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $PUPUT_VERSION; fi`
- docker tag apsl/puput apsl/puput:$TAG
- docker push apsl/puput:$TAG