-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (34 loc) · 1012 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
sudo: required
language: c python
python: 2.7
os: linux
services:
- docker
env:
- DOCKER=on LOCAL_NAME=docker-md5_local REMOTE_NAME=duplexa/md5 CWL_NAME_LIST=""
install:
- sudo pip install schema_salad
- sudo pip install git+https://github.com/SooLee/cwltool.git # cwltool
script:
- if [ "$DOCKER" == "on" ]; then
docker build -t $LOCAL_NAME .;
source tests/tests.sh;
fi;
for CWL_NAME in $CWL_NAME_LIST; do
source tests/tests_cwl.sh $CWL_NAME;
done
after_success:
- if [ "$DOCKER" == "on" ]; then
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
fi
- echo 'good'
- date