|
| 1 | + |
| 2 | +branches: |
| 3 | + only: |
| 4 | + - master |
| 5 | + |
| 6 | +version: "0.0.1.{build}" |
| 7 | + |
| 8 | +environment: |
| 9 | + matrix: |
| 10 | + |
| 11 | + # Visual Studio (Python 2 & 3, 32 & 64 bit) |
| 12 | + - PYTHON_DIR: "C:\\Python27" |
| 13 | + PYTHON_VERSION: "2.7.x" |
| 14 | + PYTHON_ARCH: "32" |
| 15 | + SKIP: "0" |
| 16 | + BLOCK: "0" |
| 17 | + |
| 18 | + - PYTHON_DIR: "C:\\Python27-x64" |
| 19 | + PYTHON_VERSION: "2.7.x" |
| 20 | + PYTHON_ARCH: "64" |
| 21 | + SKIP: "0" |
| 22 | + BLOCK: "0" |
| 23 | + |
| 24 | + - PYTHON_DIR: "C:\\Python35" |
| 25 | + PYTHON_VERSION: "3.5.x" |
| 26 | + PYTHON_ARCH: "32" |
| 27 | + SKIP: "0" |
| 28 | + BLOCK: "0" |
| 29 | + |
| 30 | + - PYTHON_DIR: "C:\\Python35-x64" |
| 31 | + PYTHON_VERSION: "3.5.x" |
| 32 | + PYTHON_ARCH: "64" |
| 33 | + SKIP: "0" |
| 34 | + BLOCK: "0" |
| 35 | + |
| 36 | +cache: |
| 37 | + - C:\\cmake-3.6.2 |
| 38 | + |
| 39 | +init: |
| 40 | + - ps: "\ |
| 41 | + iex (\ |
| 42 | + (New-Object Net.Webclient).DownloadString(\ |
| 43 | + 'https://raw.githubusercontent.com/\ |
| 44 | + appveyor/ci/master/scripts/enable-rdp.ps1'\ |
| 45 | + )\ |
| 46 | + )" |
| 47 | + |
| 48 | + # If there is a newer build queued for the same PR, cancel this one. |
| 49 | + # The AppVeyor 'rollout builds' option is supposed to serve the same |
| 50 | + # purpose but it is problematic because it tends to cancel builds pushed |
| 51 | + # directly to master instead of just PR builds (or the converse). |
| 52 | + # credits: JuliaLang developers. |
| 53 | + - ps: "\ |
| 54 | + if (\ |
| 55 | + $env:APPVEYOR_PULL_REQUEST_NUMBER -and \ |
| 56 | + $env:APPVEYOR_BUILD_NUMBER -ne (\ |
| 57 | + (\ |
| 58 | + Invoke-RestMethod \ |
| 59 | + ` https://ci.appveyor.com/api/projects/\ |
| 60 | + $env:APPVEYOR_ACCOUNT_NAME/\ |
| 61 | + $env:APPVEYOR_PROJECT_SLUG/\ |
| 62 | + history?recordsNumber=50\ |
| 63 | + ).builds | ` Where-Object pullRequestId -eq \ |
| 64 | + $env:APPVEYOR_PULL_REQUEST_NUMBER\ |
| 65 | + )[0].buildNumber\ |
| 66 | + ) { ` \ |
| 67 | + throw \"There are newer queued builds \ |
| 68 | + for this pull request, failing early.\" \ |
| 69 | + }" |
| 70 | + |
| 71 | + - python -m pip install -U scikit-ci==0.5.0 |
| 72 | + |
| 73 | +install: |
| 74 | + - python -m ci before_install |
| 75 | + - python -m ci install |
| 76 | + |
| 77 | +build_script: |
| 78 | + - python -m ci before_build |
| 79 | + - python -m ci build" |
| 80 | + |
| 81 | +test_script: |
| 82 | + - python -m ci test" |
| 83 | + |
| 84 | +after_test: |
| 85 | + - python -m ci after_test" |
| 86 | + |
| 87 | +on_finish: |
| 88 | + - ps: "\ |
| 89 | + if ($Env:BLOCK -ceq \"1\") { |
| 90 | + $blockRdp = $true ; \ |
| 91 | + iex (\ |
| 92 | + (New-Object Net.Webclient).DownloadString(\ |
| 93 | + 'https://raw.githubusercontent.com/\ |
| 94 | + appveyor/ci/master/scripts/enable-rdp.ps1'\ |
| 95 | + )\ |
| 96 | + ) |
| 97 | + }" |
| 98 | + |
| 99 | +on_failure: |
| 100 | + - ps: "Get-EventLog AppVeyor -newest 10 | Format-List" |
| 101 | + |
| 102 | +artifacts: |
| 103 | + # Archive the generated packages in the ci.appveyor.com build report. |
| 104 | + - path: dist\* |
| 105 | + |
| 106 | +matrix: |
| 107 | + fast_finish: false |
| 108 | + |
| 109 | +notifications: |
| 110 | + - provider: GitHubPullRequest |
| 111 | + auth_token: |
| 112 | + secure: iXYaAwXJcHdnRGTeb1Gk1PembhlZleCGDK2oJgsiFvA= |
| 113 | + template: >- |
| 114 | + {{#passed}}:white_check_mark:{{/passed}}{{#failed}}:x:{{/failed}} |
| 115 | + [Build {{&projectName}} {{buildVersion}} {{status}}]({{buildUrl}}) |
| 116 | + (commit {{commitUrl}} by @{{&commitAuthorUsername}}) |
| 117 | +
|
| 118 | +shallow_clone: false |
0 commit comments