forked from scikit-build/scikit-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
66 lines (53 loc) · 1.79 KB
/
azure-pipelines.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
63
64
65
66
trigger:
- master
jobs:
- job: Windows
pool:
vmImage: 'vs2017-win2016'
strategy:
matrix:
Python37:
python.arch: 'x86'
python.version: '3.7'
Python37-x64:
python.arch: 'x64'
python.version: '3.7'
maxParallel: 2
steps:
- powershell: |
$environmentVars = get-childitem -path env:*
foreach($var in $environmentVars)
{
$keyname = $var.Key
$keyvalue = $var.Value
Write-Output "${keyname}: $keyvalue"
}
displayName: Display env. variables
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
addToPath: true
architecture: '$(python.arch)'
- script: |
python -m pip install -U scikit-ci scikit-ci-addons
python -m ci_addons --install ../addons
displayName: Prerequisites
- script: python -m ci install
displayName: Install
- script: python -m ci build
displayName: Build
- script: python -m ci test
displayName: Test
env:
# Used in 'test_platform_windows_find_visual_studio'
# See https://github.com/Microsoft/azure-pipelines-image-generation/blob/master/images/win/Vs2017-Server2016-Readme.md
SKBUILD_TEST_FIND_VS2008_INSTALLATION_EXPECTED: 0
SKBUILD_TEST_FIND_VS2010_INSTALLATION_EXPECTED: 0
SKBUILD_TEST_FIND_VS2012_INSTALLATION_EXPECTED: 0
SKBUILD_TEST_FIND_VS2013_INSTALLATION_EXPECTED: 0
SKBUILD_TEST_FIND_VS2015_INSTALLATION_EXPECTED: 1
SKBUILD_TEST_FIND_VS2017_INSTALLATION_EXPECTED: 1
- script: python -m ci after_test
displayName: After Test
env:
CODECOV_TOKEN: $(codecov_token)