-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.appveyor.yml
62 lines (55 loc) · 1.97 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
53
54
55
56
57
58
59
60
61
62
build: false
version: 1.0.0-{build} # This version is somewhat arbitrary. Does not affect the version of the package.
environment:
PYTHON: "C:\\Python35-x64"
PYTHON_ARCH: 64
PYTHON_VERSION: 3.5
# Assume we are only building on tagged commits.
# Will not work on untagged commits.
XMS_VERSION: ${APPVEYOR_REPO_TAG_NAME}
AQUAVEO_CONAN: https://conan.aquaveo.com:443
CONAN_REFERENCE: "xmsmesh/${XMS_VERSION}"
CONAN_USERNAME: "aquaveo"
CONAN_CHANNEL: "stable"
CONAN_LOGIN_USERNAME: ${CONAN_USER_SECRET}
CONAN_PASSWORD: ${CONAN_PASSWORD_SECRET}
CONAN_REMOTES: ${AQUAVEO_CONAN}
CONAN_STABLE_BRANCH_PATTERN: ^\d+\.\d+\.\d+$
CONAN_UPLOAD_ONLY_WHEN_STABLE: 1
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
CONAN_VISUAL_VERSIONS: 12
CONAN_BUILD_TYPES: Debug
CONAN_ARCHS: x86_64
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
CONAN_VISUAL_VERSIONS: 12
CONAN_BUILD_TYPES: Release
CONAN_ARCHS: x86_64
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CONAN_VISUAL_VERSIONS: 14
CONAN_BUILD_TYPES: Debug
CONAN_ARCHS: x86_64
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
CONAN_VISUAL_VERSIONS: 14
CONAN_BUILD_TYPES: Release
CONAN_ARCHS: x86_64
install:
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- pip.exe install conan --upgrade
- pip.exe install conan_package_tools
- conan user # It creates the conan data directory
build_script:
# Set conditional ENVs
- ps: |
if ($env:APPVEYOR_REPO_TAG -eq 'false') {
$env:XMS_VERSION = 'Dev'
} else {
$env:XMS_VERSION = $env:APPVEYOR_REPO_TAG_NAME
$env:CONAN_UPLOAD = $env:AQUAVEO_CONAN
}
$env:CONAN_REFERENCE = 'xmsmesh/'+$env:XMS_VERSION
echo 'XMS_VERSION: '+$env:XMS_VERSION
echo 'CONAN_REFERENCE: '+$env:CONAN_REFERENCE
- python build.py
test_script:
- python test.py