-
Notifications
You must be signed in to change notification settings - Fork 10
/
.appveyor.yml
68 lines (54 loc) · 1.86 KB
/
.appveyor.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
environment:
matrix:
- PYTHON: "C:\\Python37"
ANACONDA: "C:\\Miniconda37"
- PYTHON: "C:\\Python37-x64"
ANACONDA: "C:\\Miniconda37-x64"
- PYTHON: "C:\\Python36"
ANACONDA: "C:\\Miniconda36"
- PYTHON: "C:\\Python36-x64"
ANACONDA: "C:\\Miniconda36-x64"
- PYTHON: "C:\\Python35"
ANACONDA: "C:\\Miniconda36"
- PYTHON: "C:\\Python35-x64"
ANACONDA: "C:\\Miniconda36-x64"
- PYTHON: "C:\\Python27"
ANACONDA: "C:\\Miniconda"
- PYTHON: "C:\\Python27-x64"
ANACONDA: "C:\\Miniconda-x64"
init:
- "ECHO Python from %PYTHON%"
- "ECHO Miniconda from %ANACONDA%"
install:
# Python
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PYTHON%\\Library\\bin;%PATH%"
- python --version
- python -m pip install --upgrade pip
- python -m pip --version
- python -m pip install --upgrade wheel
- python -m wheel version
# Microsoft MPI (piggyback off of mpi4py appveyor setup scripts)
- git clone https://github.com/mpi4py/mpi4py.git _mpi4py_
- "powershell _mpi4py_\\.azure\\install-msmpi.ps1"
- "SetEnvMPI.cmd"
- "SET PATH=%MSMPI_BIN%;%PATH%"
- "powershell Remove-Item -Path _mpi4py_ -Recurse -Force"
# Check versions
- python --version
- python -m pip --version
# Install package
- python -m pip install -r test_requirements.txt
- python -m pip install codecov
- python setup.py develop
build: off
test_script:
- pytest -v --doctest-plus src/pybnb
- pytest -v --cov=pybnb --cov=examples --cov=src/tests
- "powershell Rename-Item -Path .coverage -NewName coverage.1"
- python run-mpitests.py --mpirun="mpiexec -n 4" --no-build --with-coverage -v
- "powershell Rename-Item -Path .coverage -NewName coverage.2"
on_success:
- "powershell Rename-Item -Path coverage.1 -NewName .coverage.1"
- "powershell Rename-Item -Path coverage.2 -NewName .coverage.2"
- coverage combine
- codecov -X gcov