forked from ScottishCovidResponse/simple_network_sim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
20 lines (19 loc) · 787 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
language: generic
matrix:
include:
- name: "Conda Python with spec-file"
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)