forked from nsacyber/WALKOFF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (34 loc) · 846 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
38
39
40
41
# ref: https://docs.travis-ci.com/user/languages/python
sudo: required
os:
- linux
language: python
python:
- "3.7"
- "3.8"
services:
- docker
env:
- CONFIG_PATH=data/local_config.yml
before_install:
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-compose
- pip install -U pip
- pip install -U pytest
- pip install -U coverage
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install -r api/requirements.txt
- pip install -r testing/requirements.txt
before_script:
- docker swarm init
- ./walkoff.sh up -bdyr
# command to run tests
script:
- pytest --cov=api testing/api
#- coverage combine
- coverage report
after_script:
- ./walkoff.sh down -cdy