-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
87 lines (75 loc) · 2.93 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# AppVeyor.com is a Continuous Integration service to build and run tests under Windows
environment:
global:
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
# /E:ON and /V:ON options are not enabled in the batch script intepreter
# See: https://stackoverflow.com/a/13751649
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\misc\\appveyor\\run_with_env.cmd"
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:\\Miniconda-x64"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Miniconda35"
PYTHON_VERSION: "3.5"
PYTHON_ARCH: "32"
SKIP_NOTAG: "true"
- PYTHON: "C:\\Miniconda35-x64"
PYTHON_VERSION: "3.5"
PYTHON_ARCH: "64"
SKIP_NOTAG: "true"
matrix:
allow_failures:
- PYTHON_VERSION: "3.5"
fast_finish: true
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
- "conda install -q --yes pip numpy>=1.12.0 scipy>=0.18 matplotlib mock flake8 pyflakes=0.9.0 cython h5py pyproj bottleneck"
# additional dependecies
- "pip install pyimgur"
# - "conda install -q --yes -c menpo fftw=3.3.4"
# Obspy 1.0.3 conda clashes with numpy >= 1.12...(because of matplotlib 1.5.*?) install via git until 1.1.0
# - "mkdir obspy && cd obspy && git init"
# - "git remote add -f origin https://github.com/obspy/obspy.git"
# - "git pull origin master"
# - "python setup.py install"
# - "cd .."
# - "rm -rf obspy"
# Install other pip dependancies
- "pip install -U future"
- "pip install pytest pytest-pep8 pytest-cov pytest-xdist codecov"
# list package versions
- "conda list"
- "cp misc/appveyor/fftw3.h eqcorrscan/lib/fftw3.h"
- "%CMD_IN_ENV% python setup.py build_ext --inplace"
- "cp build/*/eqcorrscan/lib/* eqcorrscan/lib/."
- "%CMD_IN_ENV% dumpbin.exe -dependents eqcorrscan/lib/libutils.pyd"
# Not a .NET project
build: false
test_script:
- "%CMD_IN_ENV% python setup.py install"
- "%CMD_IN_ENV% python eqcorrscan/tests/correlate_test.py"
after_test:
# - "coverage combine"
- "powershell copy-item .coverage ..\\.coverage.empty"
- "cd .."
- "coverage combine"
- "codecov"