-
Notifications
You must be signed in to change notification settings - Fork 17
/
appveyor.yml
63 lines (54 loc) · 1.89 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
build: false
environment:
matrix:
- PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda-x64
- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: "3.5"
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda35-x64
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
MINICONDA: C:\Miniconda36-x64
init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH% %MINICONDA%"
install:
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda config --append channels conda-forge
- "conda create -q -n test-environment python=%PYTHON_VERSION% pip scipy pandas matplotlib lmfit cython numba nbconvert pytest phconvert ipykernel ipywidgets"
- activate test-environment
- pip install seaborn
- python -m pip install --upgrade pip
- ps: 'if($env:PYTHON_VERSION -eq "2.7"){pip install pathlib}'
- ps: 'if($env:PYTHON_VERSION -ne "2.7"){pip install pybroom}'
- python --version
- cd %APPVEYOR_BUILD_FOLDER%
- dir
- build.cmd python setup.py build
- pip install .
- python setup.py clean --all
before_test:
- cd %APPVEYOR_BUILD_FOLDER%\notebooks
- mkdir data
- cd data
- dir
- ps: wget http://files.figshare.com/2182604/12d_New_30p_320mW_steer_3.hdf5 -OutFile 12d_New_30p_320mW_steer_3.hdf5
- ps: wget http://files.figshare.com/2182601/0023uLRpitc_NTP_20dT_0.5GndCl.hdf5 -OutFile 0023uLRpitc_NTP_20dT_0.5GndCl.hdf5
test_script:
- cd %APPVEYOR_BUILD_FOLDER%
- python -Wd fretbursts/tests/importtest.py
- py.test -v
- cd %APPVEYOR_BUILD_FOLDER%\notebooks
- python ../fretbursts/tests/nbrun.py --exclude-list dev/exclude-py27.txt .
after_test:
- cd %APPVEYOR_BUILD_FOLDER%
- python setup.py bdist_wheel
artifacts:
# bdist_wheel puts your built wheel in the dist directory
- path: dist\*