Skip to content

Commit

Permalink
use conda environments
Browse files Browse the repository at this point in the history
  • Loading branch information
mochic committed Apr 16, 2018
1 parent eba96fc commit 404eb5e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ environment:
PYTHON_ARCH: "64"
MINICONDA: "latest"
CONDA_CHANNELS: "conda-forge msys2"
CONDA_DEPENDENCIES: "libpython"

matrix:
- PYTHON_VERSION: "2.7"
CONDA_DEPENDENCIES: "mingw"
CONDA_DEPENDENCIES: "libpython mingw"
- PYTHON_VERSION: "3.5"
CONDA_DEPENDENCIES: "m2w64-toolchain"
CONDA_DEPENDENCIES: "libpython m2w64-toolchain"
- PYTHON_VERSION: "3.6"
CONDA_DEPENDENCIES: "m2w64-toolchain"
CONDA_DEPENDENCIES: "libpython m2w64-toolchain"

version: '{build}'
platform:
Expand All @@ -24,19 +23,21 @@ install:
- "git clone git://github.com/astropy/ci-helpers.git"
- "powershell ci-helpers/appveyor/install-miniconda.ps1"
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "conda create -q -n test-environment python=%PYTHON_VERSION% %CONDA_DEPENDENCIES%"
- activate test-environment
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
- pip install codecov

build_script:
- "%CMD_IN_ENV% python setup.py build_ext --inplace"
- python setup.py build_ext --inplace

test_script:
- "%CMD_IN_ENV% pytest --cov=neuroglia"
- pytest --cov=neuroglia
- codecov

after_test:
- "%CMD_IN_ENV% python setup.py sdist bdist_wheel"
- python setup.py sdist bdist_wheel

artifacts:
- path: dist\*.whl
Expand Down

0 comments on commit 404eb5e

Please sign in to comment.