-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
33 lines (32 loc) · 1.36 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
language: generic
matrix:
include:
- name: "Test simple network sim"
install:
- sudo apt-get update && sudo apt-get install -y wget
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda create --name simple_network_sim --file spec-file.txt
- conda activate simple_network_sim
script:
- pytest --cov=simple_network_sim --doctest-modules simple_network_sim tests
after_success:
- coverage xml
- bash <(curl -s https://codecov.io/bash)
- name: "Test extractors"
install:
- sudo apt-get update && sudo apt-get install -y wget
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda env create -f extractors/environment.yml extractors
- conda activate extractors
script:
- pytest --cov=extractors --doctest-modules extractors