|
| 1 | +build: false |
| 2 | + |
1 | 3 | environment: |
2 | | - CONDA_INSTALL_LOCN: C:\\Miniconda36-x64 |
| 4 | + PYTHON: "C:\\myminiconda3" |
3 | 5 | matrix: |
4 | | - - TARGET_ARCH: x64 |
5 | | - PY: 3.7 |
| 6 | + - PY: 3.6 |
| 7 | + - PY: 3.8 |
6 | 8 |
|
7 | | -platform: |
8 | | - - x64 |
| 9 | +init: |
| 10 | + - "ECHO %PYTHON_VERSION% %MINICONDA%" |
9 | 11 |
|
10 | 12 | install: |
11 | | - # If there is a newer build queued for the same PR, cancel this one. |
12 | | - # The AppVeyor 'rollout builds' option is supposed to serve the same |
13 | | - # purpose but it is problematic because it tends to cancel builds pushed |
14 | | - # directly to master instead of just PR builds (or the converse). |
15 | | - # credits: JuliaLang developers. |
16 | | - - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod ` |
17 | | - https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | ` |
18 | | - Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { ` |
19 | | - throw "There are newer queued builds for this pull request, failing early." } |
20 | | - |
21 | | - # Add path, activate `conda` and update conda. |
22 | | - - cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat |
23 | | - |
24 | | - - cmd: conda config --set always_yes yes --set changeps1 no --set show_channel_urls true |
25 | | - - cmd: conda update conda --quiet |
26 | | - - cmd: conda install pycryptosat --quiet |
27 | | - - cmd: conda config --add channels conda-forge --force |
28 | | - - cmd: conda config --set sat_solver pycryptosat |
29 | | - - cmd: conda config --set channel_priority strict |
30 | | - - cmd: conda config --set safety_checks disabled |
31 | | - |
32 | | - - cmd: set PYTHONUNBUFFERED=1 |
33 | | - |
34 | | - - cmd: conda create --name TEST python=%PY% --file requirements.txt --file requirements-dev.txt |
35 | | - - cmd: conda activate TEST |
36 | | - |
37 | | -# Skip .NET project specific build phase. |
38 | | -build: off |
| 13 | + # If there is a newer build queued for the same PR, cancel this one. |
| 14 | + # The AppVeyor 'rollout builds' option is supposed to serve the same |
| 15 | + # purpose but it is problematic because it tends to cancel builds pushed |
| 16 | + # directly to master instead of just PR builds (or the converse). |
| 17 | + # credits: JuliaLang developers. |
| 18 | + - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod ` |
| 19 | + https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | ` |
| 20 | + Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { ` |
| 21 | + throw "There are newer queued builds for this pull request, failing early." } |
| 22 | + |
| 23 | + # Add path, activate `conda` and update conda. |
| 24 | + - set URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe" |
| 25 | + - curl -fsS -o miniconda3.exe %URL% |
| 26 | + - start /wait "" miniconda3.exe /InstallationType=JustMe /RegisterPython=0 /S /D=%PYTHON% |
| 27 | + |
| 28 | + - "set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" |
| 29 | + - call %PYTHON%\Scripts\activate |
| 30 | + |
| 31 | + - conda config --set always_yes yes --set changeps1 no --set show_channel_urls true |
| 32 | + - conda config --add channels conda-forge --force |
| 33 | + - conda config --set channel_priority strict |
| 34 | + - set PYTHONUNBUFFERED=1 |
| 35 | + |
| 36 | + - conda create --name TEST python=%PY% --file requirements.txt --file requirements-dev.txt |
| 37 | + |
| 38 | + - conda activate TEST |
| 39 | + - conda info --all |
| 40 | + - conda list |
39 | 41 |
|
40 | 42 | test_script: |
41 | | - - pytest -n 2 -rxs --cov=ctd tests |
42 | | - - pytest -s -rxs --doctest-modules -vv ctd |
| 43 | + - "python -m pip install . --no-deps -vv" |
| 44 | + - pytest -n 2 -rxs --cov=ctd tests |
| 45 | + - pytest -s -rxs --doctest-modules -vv ctd |
0 commit comments