mitmproxy/.appveyor.yml

78 lines
2.7 KiB
YAML
Raw Normal View History

2015-06-26 16:33:31 +00:00
version: '{build}'
2016-01-27 09:57:07 +00:00
build: off # Not a C# project
2016-06-25 09:27:58 +00:00
2015-06-26 16:33:31 +00:00
environment:
2016-06-29 06:55:29 +00:00
CI_DEPS: codecov>=2.0.5
CI_COMMANDS: codecov
2015-06-26 16:33:31 +00:00
matrix:
2016-06-25 09:27:58 +00:00
- PYTHON: "C:\\Python35"
2016-06-29 04:18:01 +00:00
TOXENV: "py35"
2016-12-23 19:30:04 +00:00
# TODO: ENABLE WHEN AVAILABLE
# - PYTHON: "C:\\Python36"
# TOXENV: "py36"
2016-06-25 09:27:58 +00:00
2016-02-12 20:42:02 +00:00
SNAPSHOT_HOST:
secure: NeTo57s2rJhCd/mjKHetXVxCFd3uhr8txnjnAXD1tUI=
SNAPSHOT_PORT:
secure: TiJPtg60/edYTH8RnoBErg==
SNAPSHOT_USER:
secure: 6yBwmO5gv4vAwoFYII8qjQ==
SNAPSHOT_PASS:
secure: LPjrtFrWxYhOVGXzfPRV1GjtZE/wHoKq9m/PI6hSalfysUK5p2DxTG9uHlb4Q9qV
2016-12-11 22:07:47 +00:00
RTOOL_KEY:
secure: 0a+UUNbA+JjquyAbda4fd0JmiwL06AdG6torRPdCvbPDbKHnaW/BHHp1nRPytOKM
2016-06-25 09:27:58 +00:00
2015-06-26 16:33:31 +00:00
install:
2016-06-25 09:27:58 +00:00
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "python -m pip install --disable-pip-version-check -U pip"
- "pip install -U tox"
2015-06-26 16:33:31 +00:00
test_script:
- ps: "tox -- --cov mitmproxy --cov pathod -v"
- ps: |
$Env:VERSION = $(python mitmproxy/version.py)
$Env:SKIP_MITMPROXY = "python -c `"print('skip mitmproxy')`""
2016-12-10 09:19:05 +00:00
tox -e wheel
tox -e rtool -- bdist
2016-06-25 09:27:58 +00:00
2016-12-11 22:07:47 +00:00
- ps: |
if(
($Env:TOXENV -match "py35") -and !$Env:APPVEYOR_PULL_REQUEST_NUMBER -and
2016-12-11 22:07:47 +00:00
(($Env:APPVEYOR_REPO_BRANCH -In ("master", "pyinstaller")) -or ($Env:APPVEYOR_REPO_TAG -match "true"))
) {
tox -e rtool -- decrypt release\installbuilder\license.xml.enc release\installbuilder\license.xml
if (!(Test-Path "C:\projects\mitmproxy\release\installbuilder-installer.exe")) {
"Download InstallBuilder..."
(New-Object System.Net.WebClient).DownloadFile(
"https://installbuilder.bitrock.com/installbuilder-enterprise-16.11.1-windows-installer.exe",
"C:\projects\mitmproxy\release\installbuilder-installer.exe"
)
}
Start-Process "C:\projects\mitmproxy\release\installbuilder-installer.exe" "--mode unattended --unattendedmodeui none" -Wait
& 'C:\Program Files (x86)\BitRock InstallBuilder Enterprise 16.11.1\bin\builder-cli.exe' `
build `
.\release\installbuilder\mitmproxy.xml `
windows `
--license .\release\installbuilder\license.xml `
--setvars project.version=$Env:VERSION `
--verbose
}
2016-02-12 20:42:02 +00:00
deploy_script:
# we build binaries on every run, but we only upload them for master snapshots or tags.
2016-02-12 20:42:02 +00:00
ps: |
2016-06-29 04:18:01 +00:00
if(
2016-07-16 10:08:33 +00:00
($Env:TOXENV -match "py35") -and
(($Env:APPVEYOR_REPO_BRANCH -In ("master", "pyinstaller")) -or ($Env:APPVEYOR_REPO_TAG -match "true"))
) {
2016-12-11 22:07:47 +00:00
tox -e rtool -- upload-snapshot --bdist --wheel --installer
2016-02-12 20:42:02 +00:00
}
2016-06-25 09:27:58 +00:00
cache:
2016-12-11 22:07:47 +00:00
- C:\projects\mitmproxy\release\installbuilder-installer.exe -> .appveyor.yml
2016-06-25 09:27:58 +00:00
- C:\Users\appveyor\AppData\Local\pip\cache
2016-02-02 20:48:48 +00:00
notifications:
2016-06-25 09:27:58 +00:00
- provider: Slack
incoming_webhook: https://hooks.slack.com/services/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