-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (37 loc) · 1.02 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
sudo: required
language: c python
python: 3.6
os: linux
addons:
apt:
packages:
- oracle-java8-installer
services:
- docker
env:
- LOCAL_NAME=docker-4dn-bedtobeddb REMOTE_NAME=4dndcic/4dn-bedtobeddb
install:
- docker build -t $LOCAL_NAME .
- sudo pip install schema_salad
- sudo pip install cwltool
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_cwl.sh bedtobeddb
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