-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
46 lines (43 loc) · 2.47 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
43
44
45
46
# "sudo" is needed just for Docker
sudo: required
language: python
python:
- 3.6.0
install:
- pip install -r requirements-freeze.txt
- npm install cypress --save-dev
# TODO: Is the Travis Node/NPM good enough?
# - node --version
# - NODE_VERSION=6.11.0
# - nvm install $NODE_VERSION
# - nvm use $NODE_VERSION
# - node --version
#
# - npm --version
# - npm install -g [email protected]
# - npm --version
script:
- ./test.sh
after_success:
- source define_repo.sh
- tag_push() { echo "Tagging into $2"; sudo docker tag $1 $2; sudo docker push $2; }
- sudo docker login -u $DOCKER_USER -p $DOCKER_PASS
# Always update "latest": the cache will be used for the next build.
- tag_push $IMAGE $REPO
- >
if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ]; then
echo "PR!";
BRANCH=`echo ${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} | perl -pne 'chomp;s{.*/}{};s/\W/-/g'`;
tag_push $IMAGE $REPO:$BRANCH;
tag_push $IMAGE $REPO:latest-pr;
fi
- >
if [ ! -z "$TRAVIS_TAG" ]; then
echo "Git tag!";
tag_push $IMAGE $REPO:$TRAVIS_TAG;
tag_push $IMAGE $REPO:latest;
fi
env:
global:
- secure: "JfRF9G/Q6K3JG9J4Tbl17tg5Pv2xpdI/WxmPEmsIoGqmrbYbhiheS2H/xJ7gYF3PiRsVZn0TjShoCUEikSX3L77u7PoiP0QgY2MHzFhx5+loe/0hhhRyDqEP0Nc24N36zGH5tdhjCzuEjNyavl9+nyV+PxzeaczGSa5SwW6D5cfIlt9554vRyNn3tqQpQiH9pA1/sDE3/0tCkVhjeACa73aYtAxbkuioBabxrw0Cf4/mGDbjG9M9Ial5ThN0+g02inJKec9Q23m7OzKN6LY/ExJdWm1BIv0qyAeQ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