-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml
38 lines (35 loc) · 1.96 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
services:
- docker
env:
- DOCKER_COMPOSE_VERSION=1.25.0
before_install:
# docker
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
# docker-compose
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
script:
- docker-compose -f docker/docker-compose.yml build
- docker-compose -f .travis/docker-compose.yml up -d
- docker exec -it depiction-test python3 -m unittest discover -v -t /build -p "*_test.py" /build/depiction/tests
- docker exec -it depiction-test python3 -m unittest discover -v -t /build -p "*_test.py" /build/depiction/interpreters/
- docker exec -it depiction-test python3 -m unittest discover -v -t /build -p "*_test.py" /build/depiction/models/base/
- docker exec -it depiction-test python3 -m unittest discover -v -t /build -p "*_test.py" /build/depiction/models/keras
- docker exec -it depiction-test python3 -m unittest discover -v -t /build -p "*_test.py" /build/depiction/models/kipoi/
- docker exec -it depiction-test python3 -m unittest discover -v -t /build -p "*_test.py" /build/depiction/models/max/
- docker exec -it depiction-test python3 -m unittest discover -v -t /build -p "*_test.py" /build/depiction/models/torch
- docker exec -it depiction-test python3 -m unittest discover -v -t /build -p "*_test.py" /build/depiction/models/uri/
- docker exec -it depiction-test python3 -m unittest discover -v -t /build -p "*_test.py" /build/depiction/models/examples/celltype/
deploy:
provider: script
skip_cleanup: true
script: sh .travis/deploy.sh
on:
branches:
only:
- master