forked from AllenInstitute/neuroglia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
58 lines (50 loc) · 1.51 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
# from https://gist.github.com/srikanthbojja/5c4205e37d28e1fb2b5b45e2e907b419
# also a lot of this is shamelessly stolen from astropy
environment:
global:
PYTHON: "C:\\conda"
PYTHON_ARCH: "64"
MINICONDA: "latest"
matrix:
- PYTHON_VERSION: "2.7"
CONDA_DEPENDENCIES: "libpython mingw"
- PYTHON_VERSION: "3.5"
CONDA_DEPENDENCIES: "libpython m2w64-toolchain"
- PYTHON_VERSION: "3.6"
CONDA_DEPENDENCIES: "libpython m2w64-toolchain"
version: '{build}'
platform:
- x64
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 build-environment python=%PYTHON_VERSION% %CONDA_DEPENDENCIES%"
- "conda create -q -n test-environment python=%PYTHON_VERSION% %CONDA_DEPENDENCIES%"
- activate build-environment
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
- activate test-environment
- pip install pytest pytest-cov
- pip install codecov
build_script:
- activate build-environment
- python setup.py build_ext --inplace
- python setup.py bdist_wheel
- activate test-environment
- pip install --find-links=dist neuroglia
test_script:
- activate test-environment
- pytest --cov=neuroglia
- codecov
artifacts:
- path: dist\*.whl
deploy:
- provider: GitHub
tag: $(APPVEYOR_REPO_TAG_NAME)
auth_token:
secure: ZaX3irxvB6mFFrMQ8H75lH8V36RJAJgx6QkabtM2XKg3isBqqWayKs70dQrZLhFz
draft: false
prerelease: true
on:
appveyor_repo_tag: true