-
Notifications
You must be signed in to change notification settings - Fork 10
/
.appveyor.yml
57 lines (50 loc) · 2.14 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
environment:
PYTHONDONTWRITEBYTECODE: "1"
APPVEYOR_SAVE_CACHE_ON_ERROR: "true"
BINSTAR_TOKEN:
secure: zW96v77uhbDdArc0805i/CDIvVpZvqCJyJ+WgSE1b65nPLO0nGUwmZ9qshUICIba
matrix:
- CONDA_INSTALL_LOCN: C:\Miniconda-x64
CHIMERADIR: C:\chimera
platform:
- x64
matrix:
fast_finish: true
cache:
- "%CHIMERADIR%"
install:
# Cygwin's git breaks conda-build. (See https://github.com/conda-forge/conda-smithy-feedstock/pull/2.)
- cmd: rmdir C:\cygwin /s /q
# Add path, activate `conda` and update conda.
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
- cmd: conda.exe config --set always_yes yes
- cmd: conda.exe config --remove-key channels || true
- cmd: conda.exe config --add channels defaults
- cmd: conda.exe install -q conda=4.5 conda-build git gnuwin32
- cmd: set PYTHONUNBUFFERED=1
# Install Chimera if needed
- cmd: "IF NOT EXIST %CHIMERADIR% bash scripts\\install_chimera.sh"
- cmd: "IF EXIST %CHIMERADIR% %CHIMERADIR%\\bin\\chimera.exe --version"
- cmd: "IF EXIST %CHIMERADIR% %CHIMERADIR%\\bin\\chimera.exe --root"
# Dependencies
- cmd: conda.exe build purge
- cmd: conda.exe build -q --python=2.7 conda-recipe --no-test
# Create specific Python 2 env
- cmd: conda.exe env remove -n pychimera || true
- cmd: conda.exe create -n pychimera --use-local python=2.7 pychimera pytest
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat pychimera
- cmd: conda.exe list
build: off
test_script:
- cmd: cd tests
# Chimera loading and enabling
- cmd: python pychimeratest.py -v pychimera_test*
# CLI testing; disabled, use `python -m pychimera` if needed
# - cmd: pytest -v
- cmd: python -m pychimera -c "print(2+2)"
- cmd: cd ..
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\deactivate.bat
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
deploy_script:
- ps: If ($env:APPVEYOR_REPO_TAG -eq "true" -And $env:APPVEYOR_REPO_BRANCH -eq "master") { $env:conda_upload = 'true' } Else { write-output "Not on a tag on master, won't deploy to anaconda" }
- cmd: IF "%conda_upload%"=="true" anaconda -t %BINSTAR_TOKEN% upload %PYTHON%/conda-bld/win-*/pychimera-*.tar.bz2 -u insilichem --no-progress --force