-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
30 lines (30 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
sudo: required
language: python
dist: trusty
services:
- docker
before_script:
- docker --version
- docker-compose --version
script:
- chmod -R 0777 ./home
- docker-compose build --no-cache
- docker images
- docker-compose up -d --force-recreate
- sleep 10
- docker ps
- chmod ugo+x tests/test_php.sh && bash tests/test_php.sh
- chmod ugo+x tests/test_python.sh && bash tests/test_python.sh
after_success:
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- export REPO=vietdien2005/fullstack_jenkins_alpine
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
- docker build -f ./jenkins-alpine/Dockerfile -t $REPO:$COMMIT .
- docker tag $REPO:$COMMIT $REPO:$TAG
- docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
- docker push $REPO
env:
global:
- secure: WKcXFC+achSWxPSUF4hpJueSAWuvcS0Ai5di+/zZjF/xO8RtnNmbhm7q/DI0O9j07hpopxzfGIualjN84U0Rxa6+jbhzumKO7Zo4EwmO4zL/J+yZy3+zUSxTEWy+C5P3lIkLhr6YnSa28cVVo4eCmrefIjJs8LC3R1nHeCeYOfdkj5SazkYVhr2b4/9nN4aORVF0zn4qQk5YovuUs4M1woHuGqLWXOoyf1AcRphuyS0pZgnVioUKezvmS0ypHvqeQzFP5eoPkqrHZcUCHb5wv1v42xA9F2bCyAs1fpId9huqTgpNBKV94+uVtUQAQnTmJAHIN6lzfKJWMSBCGKEceR3OYmtV1PHAzQSE0hqmVFJfZObUeOIXxYazvvftVbFssR217Xjj5YSN9drXgswrut+ZpyHV5aQgrDr7Pr4TGY4N2cd/8E1I892Pj4TWzhlOnSAqdxZBIPNJ5Gq+wDjFdRotxGeIK38VNi3P/IT+xLIb96G7lDLLIXpFKNAPSo+34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