forked from pelson/Obvious-CI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
53 lines (42 loc) · 1.67 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
branches:
only:
- master
environment:
MINICONDA_VERSION: "3.5.5"
CONDA_INSTALL_LOCN: "C:\\conda"
CMD_IN_ENV: "cmd /E:ON /V:ON /C scripts\\obvci_appveyor_python_build_env.cmd"
BINSTAR_TOKEN:
secure: rCl3tR9qKVjNlG9MVyY2E6ZZsj6Wrhwe5ytWWXtbUaJWpIiLkY6ItyJkAyEpNJCO
matrix:
- TARGET_ARCH: "x64"
CONDA_PY: "27"
- TARGET_ARCH: "x86"
CONDA_PY: "27"
- TARGET_ARCH: "x64"
CONDA_PY: "34"
- TARGET_ARCH: "x86"
CONDA_PY: "34"
- TARGET_ARCH: "x64"
CONDA_PY: "35"
- TARGET_ARCH: "x86"
CONDA_PY: "35"
# We always use a 64-bit machine, but can build x86 distributions
# with the TARGET_ARCH variable.
platform:
- x64
install:
- "python bootstrap-obvious-ci-and-miniconda.py %CONDA_INSTALL_LOCN% %TARGET_ARCH% %CONDA_PY:~0,1% --without-obvci"
- "SET PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\\Scripts;%PATH%"
- "python scripts\\obvci_install_conda_build_tools.py"
- "conda info"
# Skip .NET project specific build phase.
build: off
test_script:
- "%CMD_IN_ENV% conda build obvious-ci.conda"
on_success:
- "conda build obvious-ci.conda --output > obvci_fname.txt"
- "set /p FNAME= < obvci_fname.txt"
- "python -c \"import os; tag = os.environ.get('APPVEYOR_REPO_TAG', 'false'); is_master = os.environ.get('APPVEYOR_REPO_BRANCH', None) == 'master'; is_pr = os.environ.get('APPVEYOR_PULL_REQUEST_NUMBER', ''); print(tag not in ['false', ''] or (is_master and not is_pr));\" > is_tag_or_master.txt"
- "set /p TAG_OR_MASTER= < is_tag_or_master.txt"
- "ECHO '%TAG_OR_MASTER%'"
- "if '%TAG_OR_MASTER%' == 'True' (anaconda -t %BINSTAR_TOKEN% upload %FNAME% -u pelson -c development --force)"