forked from ZhuangLab/storm-analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
68 lines (53 loc) · 1.73 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
branches:
only:
- master
environment:
matrix:
- JOB: "2.7 64-bit"
MINICONDA: "C:\\Miniconda-x64"
PYVERSION: "2.7"
- JOB: "3.6 64-bit"
MINICONDA: "C:\\Miniconda36-x64"
PYVERSION: "3.6"
install:
#
# Rename existing mingw directory so that scons cannot find it. I'm
# not sure if this is actually a scons problem but for some reason scons
# would try and use the default mingw even when it was not in PATH. The
# build would then fail because the default mingw is 32 bit and this
# project is 64 bit.
#
- "cd c:\\"
- "rename mingw __mingw"
- "cd C:\\projects\\storm-analysis"
# Configure conda Python environment.
- "%MINICONDA%\\Scripts\\activate base"
- "conda update --yes -n base conda"
- "conda --version"
- "conda create --yes --name saenv python=%PYVERSION%"
- "conda activate saenv"
# Install dependencies. Why isn't the 'conda' command available in the
# new virtual environment?
#
- "%MINICONDA%\\Scripts\\conda config --add channels conda-forge"
- "%MINICONDA%\\Scripts\\conda install --yes numpy pytest pytest-runner m2w64-toolchain tifffile scipy h5py astropy matplotlib pillow shapely randomcolor pywavelets scons"
# Compile C libraries.
#
# How long till this breaks? Probably not long. I feel like it should
# be easier to use 64 bit MinGW..
#
- "SET PATH=C:\\mingw-w64\\x86_64-7.2.0-posix-seh-rt_v5-rev1\\mingw64\\bin;%PATH%"
- "gcc --version"
- "scons -Q compiler=mingw"
# Check versions and virtual environment.
- "python --version"
- "pip -V"
# Install storm-analysis
- "python setup.py install"
build: off
test_script:
- "python setup.py test"
after_test:
- "python setup.py bdist_wheel"
artifacts:
- path: dist\*