forked from 4dn-dcic/iMARGI-Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (33 loc) · 995 Bytes
/
.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
sudo: required
language: c python
python: 2.7
os: linux
services:
- docker
env:
- LOCAL_NAME=imargi REMOTE_NAME=4dndcic/imargi
install:
- docker build -t $LOCAL_NAME ./src/
- sudo pip install schema_salad
- sudo pip install cwltool==1.0.20181201184214
before_script:
- if [ "$TRAVIS_PULL_REQUEST" != false ]; then
docker tag $LOCAL_NAME $REMOTE_NAME:$TRAVIS_PULL_REQUEST_BRANCH;
else
docker tag $LOCAL_NAME $REMOTE_NAME:$TRAVIS_BRANCH;
fi;
script:
- source src/tests/tests_cwl_all.sh > /dev/null
after_success:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
if [ "$TRAVIS_BRANCH" == "master" ]; then
if [ "$TRAVIS_PULL_REQUEST" != false ]; then
docker tag $LOCAL_NAME $REMOTE_NAME:$TRAVIS_PULL_REQUEST_BRANCH;
docker push $REMOTE_NAME:$TRAVIS_PULL_REQUEST_BRANCH;
else
docker tag $LOCAL_NAME $REMOTE_NAME:latest;
docker push $REMOTE_NAME:latest;
fi
fi
- echo 'good'
- date