-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
43 lines (38 loc) · 1.06 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
sudo: required
language: c python
python: 2.7
os: linux
addons:
apt:
packages:
- oracle-java8-installer
services:
- docker
env:
- LOCAL_NAME=docker-4dn-hic_local REMOTE_NAME=duplexa/4dn-hic
install:
- sudo pip install schema_salad
- sudo pip install cwltool==1.0.20181201184214
- docker build -t $LOCAL_NAME .;
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 tests/tests.sh
- source 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