forked from QMCSoftware/QMCSoftware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
98 lines (89 loc) · 3.24 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
language: generic
# sudo false implies containerized builds
sudo: false
notifications:
email:
recipients:
on_success: change # default: change
on_failure: change # default: always
matrix:
include:
- name: "Python 3.7 on Xenial Linux"
os: linux
env:
- PYTHON_VERSION=3.7
- MINICONDAPATH="http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh"
before_install:
- export MINICONDA=$HOME/miniconda
- export PATH="$MINICONDA/bin:$PATH"
- hash -r
- wget $MINICONDAPATH -O miniconda.sh
- bash miniconda.sh -b -f -p $MINICONDA
- name: "Python 3.6 on Xenial Linux"
os: linux
env:
- PYTHON_VERSION=3.6
- MINICONDAPATH="http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh"
before_install:
- export MINICONDA=$HOME/miniconda
- export PATH="$MINICONDA/bin:$PATH"
- hash -r
- wget $MINICONDAPATH -O miniconda.sh
- bash miniconda.sh -b -f -p $MINICONDA
- name: "Python 3.7 on macOS"
os: osx
env:
- PYTHON_VERSION=3.7
- MINICONDAPATH="http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh"
before_install:
- export MINICONDA=$HOME/miniconda
- export PATH="$MINICONDA/bin:$PATH"
- hash -r
- wget $MINICONDAPATH -O miniconda.sh
- bash miniconda.sh -b -f -p $MINICONDA
- name: "Python 3.7 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install miniconda3 --params="'/AddToPath:1'" -y
- export PATH=/c/tools/miniconda3:/c/tools/miniconda3/Scripts/:$PATH
- export PATH=/c/tools/miniconda3/Library/bin:/c/tools/miniconda3/condabin:$PATH
- export PATH=/c/tools/miniconda3/Library/usr/bin:/c/tools/miniconda3/Library/mingw-w64/bin:$PATH
- export MINICONDA=/c/tools/miniconda3
- export PATH="$MINICONDA/bin:$PATH"
- hash -r
- echo $PATH
env:
- PYTHON_VERSION=3.7
- MINICONDAPATH="https://repo.anaconda.com/miniconda/Miniconda2-latest-Windows-x86_64.exe
env:
global:
# List package dependencies for conda
- CONDA_DEPS="pytest numpy"
# package name for test invocation
- PACKAGENAME="QMCPy"
install:
# Here we download miniconda and install the dependencies
- conda config --set always_yes yes
- conda update conda
- conda info -a
- conda create -n testenv python=$PYTHON_VERSION
- source activate testenv
- python -m pip install --upgrade pip
- python --version
- conda install pytorch torchvision cpuonly -c pytorch
- python -m pip install --quiet -r requirements/dev.txt # --use-feature=2020-resolver
- python -m pip install codecov
- python -m pip install -e .
- python -m pip freeze
- ls -lrt qmcpy/discrete_distribution/c_lib/
script:
- pytest --doctest-modules --disable-pytest-warnings qmcpy
- coverage run --source=./ -m unittest discover -s test/fasttests
- coverage run --append --source=./ -m unittest discover -s test/longtests
after_success:
- codecov