forked from msmasnadi/OPGEEv4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (48 loc) · 1.21 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
language: python
os:
- linux
#- windows
# - osx
python :
- "3.9"
#- "nightly"
install:
# could try
# - conda install mamba=1.2.0 -c conda-forge -y
# the use micromamba instead, which should be faster
- wget https://repo.anaconda.com/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
# Useful for debugging any issues with conda
- conda info -a
# Use the YML file instead of the command line below
- conda env create -q -f py3-opgee-travis.yml
- conda activate opgee
- python -m pip install .
- pip install pytest-cov codecov coveralls PyYAML
addons:
apt:
packages:
- graphviz
script:
- coverage run --source=opgee -m pytest
env:
# set OPGEE_HOME so the test opgee.cfg file is found
OPGEE_HOME=/home/travis/build/Stanford-EAO/OPGEEv4/tests/files
notifications:
email: true
branches:
only:
- master
- test-travis
- /v(\d+)\.(\d+)\.*/
matrix:
allow_failures:
- python: nightly
codecov: true
after_success:
- coveralls
- bash <(curl -s https://codecov.io/bash)