diff options
Diffstat (limited to '.appveyor.yml')
-rw-r--r-- | .appveyor.yml | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/.appveyor.yml b/.appveyor.yml index 689ad5e5..64a5c882 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,11 +1,17 @@ version: '{build}' -shallow_clone: true build: off # Not a C# project environment: matrix: - PYTHON: "C:\\Python27" PATH: "%APPDATA%\\Python\\Scripts;C:\\Python27;C:\\Python27\\Scripts;%PATH%" - PYINSTALLER_VERSION: "git+https://github.com/pyinstaller/pyinstaller.git" + SNAPSHOT_HOST: + secure: NeTo57s2rJhCd/mjKHetXVxCFd3uhr8txnjnAXD1tUI= + SNAPSHOT_PORT: + secure: TiJPtg60/edYTH8RnoBErg== + SNAPSHOT_USER: + secure: 6yBwmO5gv4vAwoFYII8qjQ== + SNAPSHOT_PASS: + secure: LPjrtFrWxYhOVGXzfPRV1GjtZE/wHoKq9m/PI6hSalfysUK5p2DxTG9uHlb4Q9qV install: - "pip install --user -U pip setuptools" - "pip install --user --src .. -r requirements.txt" @@ -14,22 +20,14 @@ test_script: - "py.test -s --cov libmproxy --timeout 30" cache: - C:\Users\appveyor\AppData\Local\pip\cache -after_test: - - | +deploy_script: + ps: | + if($Env:APPVEYOR_REPO_BRANCH -match "master") { git clone https://github.com/mitmproxy/release.git ..\release pip install -e ..\release - python ..\release\rtool.py -p netlib -p mitmproxy bdist - - ps: Get-ChildItem ..\release\dist\*.zip | ForEach { Push-AppveyorArtifact $_.FullName -FileName $_.Name } -deploy: -- provider: FTP - host: 46.101.230.67:2222 - protocol: sftp - username: travis - password: - secure: +Ousom/XDCLx9+bUjr1mRKepgIzLdqP+clMpoAiPXUysZCDGxODD/7ij4z8GJ3AF - folder: snapshots - on: - branch: master + python ..\release\rtool.py bdist + python ..\release\rtool.py upload-snapshot --bdist + } notifications: - provider: Slack incoming_webhook: https://hooks.slack.com/services/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 |