-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (38 loc) · 2.44 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
language: python
python:
- 3.6
install:
- pip install -r requirements-test.txt
script:
- coverage run tests.py
after_success:
- codecov
- REPO=scottx611x/refinery-higlass-docker
- IMAGE=`docker ps --latest --format '{{ .Image }}'` # TODO: with more containers, can't rely on ordering
- tag_push() { echo "Tagging into $2"; docker tag $1 $2; docker push $2; }
- 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
notifications:
email:
recipients:
on_success: never
on_failure: always
env:
global:
- secure: "FLA1YpZuuyY5/2c70HYY9VZlOiKInd5c3ZdJS6I5h7wZgDVcRhs3/DbGeH4189irhPPixyQXXq7omHh4nm4x4ud0xB3HMlAEjeiA3UZI5T22qZs3lwtpoQcMybituZNJAGJ85VxctIC+3Tl7M6PduTVOMV4huAnfoQQucq1+IzWi9Rb1V51Rxvb2wysPApPLFGkgqgyOvGbmAmOBcf3rqsedzFsa0ZHpSi+SfshY2G3kIl7Miqj1ufLEU8Uiom+FhihUq2Pp+SXJlbYpbsjyZeSKZ5VRIKWfaV8TRjPYP1Has24uWgJANECrU/oQGPx+2WZBl8QjXnLeMrtjFFklPDVENMDCX3Cpz5qWX/hmi0AGZoo1n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