-
Notifications
You must be signed in to change notification settings - Fork 23
/
appveyor.yml
35 lines (29 loc) · 1.37 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
version: 1.0.{build}
environment:
ANACONDA_KEY:
secure: d/DFVupNTJ6+U0xHVYEyHKLiA2RwtbTDvWokivxh4Gjj2y9znZXJt5GIAe1C8G4e
matrix:
- PYTHON_LOC: "C:\\Miniconda-x64"
PYTHON_VERSION: "2.7"
- PYTHON_LOC: "C:\\Miniconda36-x64"
PYTHON_VERSION: "3.5"
- PYTHON_LOC: "C:\\Miniconda36-x64"
PYTHON_VERSION: "3.6"
install:
- cmd: call %PYTHON_LOC%\Scripts\activate.bat
- cmd: conda config --set always_yes yes --set changeps1 no
- cmd: conda config --append channels conda-forge
- cmd: conda config --append channels slackha
- cmd: conda config --append channels cantera
- cmd: conda update -q conda
- ps: (get-content test-environment.yaml) | %{$_ -replace "\$\{PYTHON\}",$env:PYTHON_VERSION} | set-content test-environment.yaml
- cmd: IF "%APPVEYOR_REPO_TAG%"=="false" conda env create -qf test-environment.yaml
- cmd: IF "%APPVEYOR_REPO_TAG%"=="false" call %PYTHON_LOC%\Scripts\activate.bat test-environment
- cmd: IF "%APPVEYOR_REPO_TAG%"=="true" conda install -yq anaconda-client conda-build
- cmd: conda info -a
- cmd: conda list
build_script:
- cmd: IF "%APPVEYOR_REPO_TAG%"=="false" python setup.py test
- cmd: IF "%APPVEYOR_REPO_TAG%"=="true" conda build conda.recipe --python=%PYTHON_VERSION%
deploy_script:
- cmd: IF "%APPVEYOR_REPO_TAG%"=="true" anaconda -t %ANACONDA_KEY% upload "%PYTHON_LOC%\conda-bld\win-64\pyjac*.tar.bz2"