-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathappveyor.yml
73 lines (58 loc) · 2.17 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
63
64
65
66
67
68
69
70
71
72
73
branches:
only:
- master
version: "0.0.1.{build}"
environment:
matrix:
- PYTHON_DIR: "C:\\Python3.9-x64"
BLOCK: "0"
- PYTHON_DIR: "C:\\Python3.10-x64"
BLOCK: "0"
init:
- python.exe -m pip install -U scikit-ci-addons
- python.exe -m ci_addons --install ../addons
- ps: ../addons/appveyor/rolling-build.ps1
- ps: |
$env:BOOTSTRAP_BRANCH = $env:APPVEYOR_REPO_BRANCH
$env:BOOTSTRAP_REPO_SLUG = $env:APPVEYOR_REPO_NAME
if($env:APPVEYOR_PULL_REQUEST_NUMBER -ne $null) {
#
# Since AppVeyor provides only the PR number, retrieve
# PR branch name directly from GitHub
#
# See also https://developer.github.com/v3/pulls/#get-a-single-pull-request
#
$GitHubUri="https://api.github.com/repos/scikit-build/scikit-ci/pulls/$env:APPVEYOR_PULL_REQUEST_NUMBER"
$env:BOOTSTRAP_BRANCH=(Invoke-WebRequest `
-Uri $GitHubUri `
-Headers @{ `
"Accept"= "application/vnd.github.v3.raw" `
} | ConvertFrom-Json).head.ref
$env:BOOTSTRAP_REPO_SLUG=(Invoke-WebRequest `
-Uri $GitHubUri `
-Headers @{ `
"Accept"= "application/vnd.github.v3.raw" `
} | ConvertFrom-Json).head.repo.full_name
}
Write-Host "BOOTSTRAP_REPO_SLUG:$env:BOOTSTRAP_REPO_SLUG"
Write-Host "BOOTSTRAP_BRANCH:$env:BOOTSTRAP_BRANCH"
- git clone git://github.com/%BOOTSTRAP_REPO_SLUG% -b %BOOTSTRAP_BRANCH% ../bootstrap-scikit-ci
- python.exe -m pip install -U ../bootstrap-scikit-ci/
# scikit-ci-yml.rst: start
install:
- python -m ci install
build_script:
- python -m ci build
test_script:
- python -m ci test
after_test:
- python -m ci after_test
# scikit-ci-yml.rst: end
on_finish:
- ps: ../addons/appveyor/enable-worker-remote-access.ps1 -check_for_block
artifacts:
# Archive the generated packages in the ci.appveyor.com build report.
- path: dist\*
matrix:
fast_finish: false
shallow_clone: false