aboutsummaryrefslogtreecommitdiffstats
path: root/.appveyor.yml
blob: e9c62ba198a6aff5a84e4de3d74d1b1e00a9bc68 (plain)
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
version: '{build}'
build: off  # Not a C# project

branches:
  except:
    - requires-io-master

environment:
  CI_DEPS: codecov>=2.0.5
  CI_COMMANDS: codecov
  matrix:
    - PYTHON: "C:\\Python36"
      TOXENV: "py36"
      PYINSTALLER: "1"
      WININSTALLER: "1"
    - PYTHON: "C:\\Python37"
      TOXENV: "py37"

install:
  - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
  - "python -m pip install --disable-pip-version-check -U pip"
  - "pip install -U tox"

test_script:
  - ps: |
      if ($env:APPVEYOR_REPO_COMMIT_MESSAGE.Contains("[notest]")) {
        echo "!!!! Skipping tests."
      } else {
        tox -- --verbose --cov-report=term
      }
  - ps: tox -e cibuild -- build

deploy_script:
  ps: tox -e cibuild -- upload

cache:
  - C:\projects\mitmproxy\release\installbuilder\setup -> .appveyor.yml
  - C:\Users\appveyor\AppData\Local\pip\cache