mitmproxy/.appveyor.yml

64 lines
2.1 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
branches:
except:
- requires-io-master
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:
- PYTHON: "C:\\Python36"
TOXENV: "py36"
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:
2017-01-23 21:53:56 +00:00
- ps: "tox -- --verbose --cov-report=term"
- ps: |
$Env:VERSION = $(python -m mitmproxy.version)
$Env:SKIP_MITMPROXY = "python -c `"print('skip mitmproxy')`""
tox -e cibuild -- build
2016-12-11 22:07:47 +00:00
- ps: |
if($Env:RTOOL_KEY) {
$ibVersion = "18.2.0"
$ibSetup = "C:\projects\mitmproxy\release\installbuilder-installer.exe"
2017-10-23 22:20:05 +00:00
$ibCli = "C:\Program Files (x86)\BitRock InstallBuilder Enterprise $ibVersion\bin\builder-cli.exe"
if (!(Test-Path $ibSetup)) {
echo "Download InstallBuilder..."
2016-12-11 22:07:47 +00:00
(New-Object System.Net.WebClient).DownloadFile(
"https://installbuilder.bitrock.com/installbuilder-enterprise-$ibVersion-windows-installer.exe",
$ibSetup
2016-12-11 22:07:47 +00:00
)
}
echo "Install InstallBuilder..."
2017-10-23 22:20:05 +00:00
Start-Process $ibSetup "--mode unattended --unattendedmodeui none" -PassThru -NoNewWindow -Wait
echo "Decrypt license..."
tox -e cibuild -- decrypt release\installbuilder\license.xml.enc release\installbuilder\license.xml
echo "Run InstallBuilder..."
2017-10-23 22:20:05 +00:00
&$ibCli `
2016-12-11 22:07:47 +00:00
build `
.\release\installbuilder\mitmproxy.xml `
windows `
--license .\release\installbuilder\license.xml `
--setvars project.version=$Env:VERSION `
--verbose
2017-10-23 22:20:05 +00:00
while (!(Test-Path C:\projects\mitmproxy\release\dist\mitmproxy-*-windows-installer.exe)) { Start-Sleep 0.1 }
echo "Installer build completed."
2016-12-11 22:07:47 +00:00
}
2016-02-12 20:42:02 +00:00
deploy_script:
ps: tox -e cibuild -- upload
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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