forked from FNNDSC/pfioh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (28 loc) · 912 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
sudo: required
services:
- docker
language: python
python:
- "3.6"
env:
global:
- DOCKER_COMPOSE_VERSION=1.18.0
- DOCKER_VERSION=18.02.0~ce-0~ubuntu
matrix:
- TO_TEST=pfioh
- TO_TEST=cube
before_install:
- if [ "$TO_TEST" = "cube" ]; then ./cube_before_install.sh; fi
# command to install dependencies
install:
- if [ "$TO_TEST" = "pfioh" ]; then sudo apt-get install -y libgnutls28-dev && pip install .; fi
before_script:
- if [ "$TO_TEST" = "cube" ]; then ./cube_before_script.sh; fi
# command to run tests
script:
- if [ "$TO_TEST" = "pfioh" ]; then nosetests; fi
- if [ "$TO_TEST" = "cube" ]; then cd ../ChRIS_ultron_backEnd/; docker-compose exec chris_dev python manage.py test --tag integration --exclude-tag error-pman; fi
after_script:
- if [ "$TO_TEST" = "cube" ]; docker swarm leave --force; fi
notifications:
slack: fnndsc:DSaLuTVWolC4hevlX56PyU8P