-
Notifications
You must be signed in to change notification settings - Fork 15
/
appveyor.yml
30 lines (27 loc) · 1.11 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
version: 1.0.{build}
environment:
PYTHON_LOC: "C:\\Miniconda36-x64"
skip_tags: true
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 update conda
- cmd: conda update -q --all
- ps: (get-content test-environment.yaml) | %{$_ -replace "\$\{PYTHON\}","3.5"} | set-content test-environment.yaml
- cmd: conda env create -qf test-environment.yaml
- cmd: git checkout -- test-environment.yaml
- ps: (get-content test-environment.yaml) | %{$_ -replace "\$\{PYTHON\}","3.6"} | set-content test-environment.yaml
- cmd: conda env create -qf test-environment.yaml
- cmd: conda info -a
- ps: Write-Host "Packages in py3.5 Environment:"
- cmd: conda list -n py3.5
- ps: Write-Host "Packages in py3.6 Environment:"
- cmd: conda list -n py3.6
build_script:
- cmd: call %PYTHON_LOC%\Scripts\activate.bat py3.5
- cmd: pytest -vv --cov=./ --cov-append
- cmd: call %PYTHON_LOC%\Scripts\activate.bat py3.6
- cmd: pytest -vv --cov=./ --cov-append
- cmd: flake8 .
- cmd: codecov -X gcov