Skip to content

MAINT Update build appveyor #393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 9 additions & 26 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
build: false

environment:
# There is no need to run the build for all the Python version /
# architectures combo as the generated nilearn wheel is the same on all
Expand Down Expand Up @@ -30,31 +32,12 @@ install:
# Add Library/bin directory to fix issue
# https://github.com/conda/conda/issues/1753
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PYTHON%\\Library\\bin;%PATH%"

# Check that we have the expected version and architecture for Python
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""

# Installed prebuilt dependencies from conda
- "conda install pip numpy scipy scikit-learn=0.19.0 pandas nose wheel matplotlib -y -q"

# Install other nilearn dependencies
- "pip install coverage nose-timer pytest pytest-cov"
- "python setup.py bdist_wheel"
- ps: "ls dist"

# Install the generated wheel package to test it
- "pip install --pre --no-index --find-links dist/ imbalanced-learn"

# Not a .NET project, we build in the install step instead
build: false
- conda install pip scipy numpy scikit-learn=0.19 pandas -y -q
- conda install pytest pytest-cov -y -q
- conda install nose -y -q # FIXME: remove this line when using sklearn > 0.19
- pip install .

test_script:
- powershell ./build_tools/appveyor/test.ps1

artifacts:
# Archive the generated packages in the ci.appveyor.com build report.
- path: dist\*

#on_success:
# - TODO: upload the content of dist/*.whl to a public wheelhouse
- mkdir for_test
- cd for_test
- pytest --pyargs imblearn --cov-report term-missing --cov=imblearn
12 changes: 0 additions & 12 deletions build_tools/appveyor/test.ps1

This file was deleted.