forked from spyking-circus/spyking-circus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
83 lines (73 loc) · 3.42 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
environment:
# For new releases, only one job will upload the source code to Pypi, and only
# one job each for Python 2 and 3 will upload a wheel.
matrix:
- PYTHON: "C:\\Miniconda36-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
PYPI_UPLOAD_SOURCE: yes
PYPI_UPLOAD_WHEEL: yes
platform: x64
# - PYTHON: "C:\\Miniconda37-x64"
# PYTHON_VERSION: "3.7"
# PYTHON_ARCH: "64"
# PYPI_UPLOAD_SOURCE: no
# PYPI_UPLOAD_WHEEL: no
# platform: x64
- PYTHON: "C:\\Miniconda-x64"
PYTHON_VERSION: "2.7"
PYTHON_ARCH: "64"
PYPI_UPLOAD_SOURCE: no
PYPI_UPLOAD_WHEEL: no
platform: x64
ANACONDA_TOKEN:
secure: 7drSxrQivCMViVHFeeFsfVzN3mELF6vkv4JAcuzdNedzFOvX1HAcGBTe0WolTsUJ
TWINE_PASSWORD:
secure: T5fSzOqc6Z1D5P+Bt2qgXA==
install:
# Add the paths for anaconda
- 'set PATH=%PYTHON%;%PYTHON%\Library\bin;%PYTHON%\Scripts;%PATH%'
# Install MPI
- ps: (new-object net.webclient).DownloadFile(
"https://download.microsoft.com/download/A/E/0/AE002626-9D9D-448D-8197-1EA510E297CE/msmpisetup.exe",
"C:\projects\MSMpiSetup.exe")
- C:\projects\MSMpiSetup.exe -unattend -minimal
- set PATH=C:\Program Files\Microsoft MPI\Bin;%PATH%
# Check that we have the expected version and architecture for Python
- 'python --version'
- 'python -c "import struct; print(struct.calcsize(''P'') * 8)"'
build: false # not a C# project
test_script:
- conda update --yes --quiet conda
# Stay with the conda version to avoid a downgrade to 4.3 from conda-forge
- conda config --set auto_update_conda False
- conda config --add channels conda-forge
- conda config --add channels anaconda
- conda install --yes --quiet conda-build=3.17 setuptools wheel conda-verify
- conda build -c spyking-circus -c conda-forge -c anaconda conda_recipe
- python packaging_tools/move_conda_package.py
- conda install --yes --quiet wheel
- python setup.py sdist --formats=zip,gztar,bztar
- python setup.py bdist_wheel
# Try installing from the source package (install dependencies via conda first)
- conda install --yes --quiet -c spyking-circus tqdm mpi4py numpy cython scipy matplotlib h5py colorama psutil qt pyqt python-blosc statsmodels scikit-learn
- FOR /R dist %%F in (*.tar.gz) do pip install %%F
- spyking-circus -h
- pip uninstall -y -q spyking-circus
# Try installing from the binary wheel
- FOR /R dist %%F in (*.whl) do pip install %%F
- spyking-circus -h
after_test:
- 'if "%APPVEYOR_PULL_REQUEST_NUMBER%" == "" if "%APPVEYOR_REPO_NAME%" == "spyking-circus/spyking-circus" if "%APPVEYOR_REPO_TAG%" == "true" (
conda install --yes --quiet anaconda-client &&
conda install --yes --quiet -c conda-forge twine &&
python packaging_tools\conda-server-push.py %APPVEYOR_REPO_TAG_NAME%
)'
- 'if "%APPVEYOR_PULL_REQUEST_NUMBER%" == "" if "%APPVEYOR_REPO_NAME%" == "spyking-circus/spyking-circus" if "%APPVEYOR_REPO_TAG%" == "true" if "%PYPI_UPLOAD_SOURCE%" == "yes" (twine upload -u pierre.yger --skip-existing dist/*.tar.bz2)'
- 'if "%APPVEYOR_PULL_REQUEST_NUMBER%" == "" if "%APPVEYOR_REPO_NAME%" == "spyking-circus/spyking-circus" if "%APPVEYOR_REPO_TAG%" == "true" if "%PYPI_UPLOAD_WHEEL%" == "yes" (twine upload -u pierre.yger --skip-existing dist/*.whl)'
artifacts:
# Archive the generated conda package in the ci.appveyor.com build report.
- path: '*.tar.bz2'
name: conda package
- path: dist\*
name: PyPI binaries