forked from eqcorrscan/EQcorrscan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
67 lines (59 loc) · 2.29 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
# AppVeyor.com is a Continuous Integration service to build and run tests under Windows
environment:
global:
PYTHON: "C:\\conda"
MINICONDA_VERSION: "3.7.0"
CI_URL: "--ci-url https://ci.appveyor.com/project/%APPVEYOR_REPO_NAME%/build/1.0.%APPVEYOR_BUILD_NUMBER%-%APPVEYOR_REPO_BRANCH%"
PR_URL: "--pr-url https://github.com/%APPVEYOR_REPO_NAME%/pull/%APPVEYOR_PULL_REQUEST_NUMBER%"
matrix:
- PYTHON: "C:\\Miniconda35-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Miniconda35-x64"
PYTHON_VERSION: "3.7"
PYTHON_ARCH: "64"
install:
- '.\\misc\\appveyor\\trim_path.bat'
- "ECHO %PATH%"
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
# Check that we have the expected version and architecture for Python
- "%CMD_IN_ENV% python --version"
# Install fftw
- "choco install curl"
- "choco install 7zip"
- "%CMD_IN_ENV% ./misc/appveyor/setup_fftw_dlls.cmd"
# Install the build and runtime dependencies of the project.
- "conda update -q --yes conda"
- "conda config --add channels conda-forge"
# Create a conda environment using the astropy bonus packages
- "conda create -q --yes -n test python=%PYTHON_VERSION%"
- "activate test"
# Install default dependencies
# - |
# if [[ "${py:0:1}" == "3" ]]; then
# PYFLAKES="pyflakes=1.0.0"
# else
# PYFLAKES="pyflakes=0.9.0"
# fi
- "conda install -q --yes pip obspy numpy=1.14 scipy>=0.18 matplotlib mock flake8 pyflakes cython h5py pyproj bottleneck lxml pyfftw"
# additional dependecies
- "pip install pyimgur"
# Install other pip dependancies
- "pip install -U future"
- "pip install pytest pytest-pep8 pytest-cov pytest-xdist pytest-rerunfailures pytest-mpl codecov"
# list package versions
- "conda list"
# Copy the windows fftw header file
- "cp misc/appveyor/fftw3.h eqcorrscan/utils/src/fftw3.h"
# Not a .NET project
build: false
test_script:
- "%CMD_IN_ENV% python setup.py develop"
# - "%CMD_IN_ENV% python setup.py install"
- "%CMD_IN_ENV% py.test -n4 -m \"not serial and not network and not superslow\""
- "%CMD_IN_ENV% py.test -m \"serial and not network and not superslow\" --cov-append"
after_test:
# - "coverage combine"
# - "powershell copy-item .coverage ..\\.coverage.empty"
# - "coverage combine"
- "codecov"