-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.travis.yml
39 lines (34 loc) · 2.6 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
before_script:
# Login to be able to build/push new docker images
- docker login -u $DOCKER_USER -p $DOCKER_PASS
# Build and run new docker image
- bash build-docker-image.sh
# Set image envvar from running container
- IMAGE_ID=`docker ps --latest --format '{{ .Image }}'` # TODO: with more containers, can't rely on ordering
- CONTAINER_ID=`docker ps --latest --format '{{ .ID }}'`
script:
# Run test scripts inside of container
- docker exec -it $CONTAINER_ID Rscript examples/test.R
- docker exec -it $CONTAINER_ID Rscript examples/test_maf.R
after_success:
- tag_push() { echo "Tagging into $2"; docker tag $1 $2; docker push $2; }
# Always update "latest" tag: the cache will be used for the next build.
- tag_push $IMAGE_ID $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_ID $REPO:$BRANCH;
tag_push $IMAGE_ID $REPO:latest-pr;
fi
- >
if [ ! -z "$TRAVIS_TAG" ]; then
echo "Git tag!";
tag_push $IMAGE_ID $REPO:$TRAVIS_TAG;
tag_push $IMAGE_ID $REPO:latest;
fi
env:
global:
- secure: TeikQTM5YOgSnGmwDQ3XKJQIesM4WW/htX807aCoe5/ioeskxK57YolH8zWYArNDestfkyfs8FBxH80MQaXVlejqmyzbmS+11GhiCKoWvb4gi1TegvsTUkSkqq0OcrdjrrfS2eHc0Cq1+y/hy+4rmecpkvOe9knhghmMji5E2WCxi6Wq0BTXcqTYXaXH3cNFNuoqoJKtrdFy+XNmVhsXeUG1ocRIz0nB3w1v3hCXXBl4K6vDEgu8vkAaLFSWTdcUPb+BLLZAiOQ9tuzPT59rRtZF5AJLBrg5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