Skip to content

Commit 62f9f19

Browse files
author
Guillaume Lemaitre
committed
Appveyor first attempt
1 parent daf94ee commit 62f9f19

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

appveyor.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
environment:
2+
# There is no need to run the build for all the Python version /
3+
# architectures combo as the generated nilearn wheel is the same on all
4+
# platforms (universal wheel).
5+
# We run the tests on 2 different target platforms for testing purpose only.
6+
# We use miniconda versions of Python provided by appveyor windows images
7+
matrix:
8+
- PYTHON: "C:\\Miniconda-x64"
9+
PYTHON_VERSION: "2.7.x"
10+
PYTHON_ARCH: "64"
11+
12+
- PYTHON: "C:\\Miniconda3-x64"
13+
PYTHON_VERSION: "3.5.x"
14+
PYTHON_ARCH: "64"
15+
16+
install:
17+
# Prepend miniconda installed Python to the PATH of this build
18+
# Add Library/bin directory to fix issue
19+
# https://github.com/conda/conda/issues/1753
20+
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PYTHON%\\Library\\bin;%PATH%"
21+
22+
# Check that we have the expected version and architecture for Python
23+
- "python --version"
24+
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
25+
26+
# Installed prebuilt dependencies from conda
27+
- "conda install pip numpy scipy scikit-learn nose wheel matplotlib -y -q"
28+
29+
# Install other nilearn dependencies
30+
- "pip install coverage nose-timer"
31+
- "python setup.py bdist_wheel"
32+
- ps: "ls dist"
33+
34+
# Install the generated wheel package to test it
35+
- "pip install --pre --no-index --find-links dist/ imbalanced-learn"
36+
37+
# Not a .NET project, we build in the install step instead
38+
build: false
39+
40+
test_script:
41+
# Change to a non-source folder to make sure we run the tests on the
42+
# installed library.
43+
- "cd C:\\"
44+
- "python -c \"import nose; nose.main()\" -v -s imbalanced-learn --with-timer --timer-top-n 50"
45+
46+
artifacts:
47+
# Archive the generated packages in the ci.appveyor.com build report.
48+
- path: dist\*
49+
50+
#on_success:
51+
# - TODO: upload the content of dist/*.whl to a public wheelhouse

0 commit comments

Comments
 (0)