-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (32 loc) · 2.12 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
language: python
python:
- 2.7
before_script:
- "pip install -r context/requirements.txt"
script:
- "./test.sh"
after_script:
- docker ps -a
- docker logs qualimap_multiqc_refinery-container
after_success:
- source shared.sh
- tag_push() { echo "Tagging into $2"; docker tag $1 $2; docker push $2; }
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- 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: Vd/ZaPzkK+IkZ4k581UU3tbNevmLG6QJTqH4JLwP+GC4CFN7VnBeeG7pBZTtVoj2dsDZlB9FrDREA21ZlzpHMsgjVRfvO6Q2logtBDePYGpYv9Kr2E2UMLqbLKfXpWW1bnUSWmg7IBCC2E/Uo4oS7ds+UT+Wv62zb9+ueHBWnfNEX6Fnnq+vyQkgww9OlsO5TrB6aiDTc4T3mirR1rbSXGvQm2Xs2+HvZRlAvjXzX7+A0qgXqgjZ5aXWq5HVQ38tFvcxxs5eygvUuszkVW2XL2TE7nGiTinq+6+X5OKHOO91xhH6sIlrc3HgdqovMPWobveweJhOMs0sW8Uv023wKVES/HTUYTwNa8votVQZVuAF998Fazg0tNvPYGzhCl0HfauHxZzUCPAzrEvUof3X9qvDbV4Lq3DTArQUC07Uz1NRBbiJED9ZfZoxo4ejsFhe1CeX5dQyDOG+jTPg1s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