This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
44 lines (40 loc) · 1.77 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
# version here is only relevant for the AppVeyor CI, no need to adjust
version: '{build}'
environment:
global:
PYTHON_LOC: "C:\\Miniconda37-x64"
install:
- call %PYTHON_LOC%\Scripts\activate.bat
- conda config --set always_yes yes --set changeps1 no
# conda-build=3.16.3 was broken and failed with error message
# "Couldn't extract raw recipe text for cate-cli output"
# with, conda-build=3.16.2 cate does not seem to be installed during the build
# - conda install -y conda-build=3.16.2 constructor anaconda-client
- conda install -y conda-build=3.17.8 anaconda-client
build_script:
# Test are disabled (--no-test): matplotlib fails, because no writable HOME directory
# AppVeyor has no HOME directory set.
- set MPLCONFIGDIR="."
#- conda build --old-build-string --no-test -c conda-forge -c defaults recipes\cate
- conda build --old-build-string --no-test -c conda-forge recipes\cate-cli
#- conda build --old-build-string --no-test -c conda-forge -c defaults recipes\cate-util
deploy_script:
# only publish artifacts on master branch when pushed (not from cron or PRs)
- ps: |
if ( $env:APPVEYOR_SCHEDULED_BUILD -eq "True" ) {
write-output "CRON build, won't deploy to anaconda"
} else {
$env:conda_upload = 'true'
}
- ps: |
if ([bool]$env:APPVEYOR_PULL_REQUEST_NUMBER) {
write-output "PULL REQUEST build, won't deploy to anaconda"
} else {
$env:conda_upload = 'true'
}
- ps: |
if ($env:APPVEYOR_REPO_BRANCH -eq 'master') {
$env:conda_upload = 'true'
}
- cmd: IF "%conda_upload%"=="true" anaconda -v -t %ANACONDA_TOKEN% upload %PYTHON_LOC%\conda-bld\win-64\cate*.tar.bz2 -u ccitools --force
- echo "Finished Artifact Deployment"