File: appveyor.yml

package info (click to toggle)
python-hypothesis 3.71.11-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,344 kB
  • sloc: python: 27,477; ruby: 981; sh: 223; makefile: 19
file content (89 lines) | stat: -rw-r--r-- 2,983 bytes parent folder | download
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
environment:
  global:
    # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
    # /E:ON and /V:ON options are not enabled in the batch script interpreter
    # See: http://stackoverflow.com/a/13751649/163740
    CMD_IN_ENV: "cmd /E:ON /V:ON /C ..\\scripts\\run_with_env.cmd"

    TWINE_USERNAME: DRMacIver
    TWINE_PASSWORD:
      secure: TpmpMHwgS4xxcbbzROle2xyb3i+VPP8cT5ZL4dF/UrA=

  matrix:
    - PYTHON: "C:\\Python27"
      PYTHON_VERSION: "2.7.14"
      PYTHON_ARCH: "32"

    - PYTHON: "C:\\Python27-x64"
      PYTHON_VERSION: "2.7.14"
      PYTHON_ARCH: "64"

    - PYTHON: "C:\\Python36"
      PYTHON_VERSION: "3.6.5"
      PYTHON_ARCH: "32"

    - PYTHON: "C:\\Python36-x64"
      PYTHON_VERSION: "3.6.5"
      PYTHON_ARCH: "64"

cache:
  - "C:\\Python27"
  - "C:\\Python27-x64"
  - "C:\\Python36"
  - "C:\\Python36-x64"
  - "%LOCALAPPDATA%\\pip\\Cache"

# Appveyor "helpfully" ignores skip directives in the commit message body
# https://www.appveyor.com/docs/how-to/filtering-commits/#commit-message
skip_commits:
  message: /^Bump version to \d+\.\d+\.\d+ and update changelog/

# This matches both branches and tags (no, I don't know why either).
# We need a match both for pushes to master, and our release tags which
# trigger wheel builds.
branches:
  only:
    - master
    - /^\d+\.\d+\.\d+$/

artifacts:
  - path: 'dist\*.whl'
    name: wheel

install:
  - ECHO "Filesystem root:"
  - ps: "ls \"C:/\""

  - ECHO "Installed SDKs:"
  - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""

  # Install Python (from the official .msi of http://python.org) and pip when
  # not already installed.
  - "powershell ./scripts/install.ps1"

  # Prepend newly installed Python to the PATH of this build (this cannot be
  # done from inside the powershell script as it would require to restart
  # the parent CMD process).
  - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"

  # Check that we have the expected version and architecture for Python
  - "python --version"
  - "python -c \"import struct; print(struct.calcsize('P') * 8)\""
  - "cd hypothesis-python"
  - "%CMD_IN_ENV% python -m pip.__main__ install --upgrade setuptools pip wheel twine"
  - "%CMD_IN_ENV% python -m pip.__main__ install setuptools -r../requirements/test.txt"
  - "%CMD_IN_ENV% python -m pip.__main__ install .[all]"
  - "%CMD_IN_ENV% python setup.py bdist_wheel --dist-dir dist"

deploy_script:
  - ps: 'if (($env:APPVEYOR_REPO_TAG -eq $TRUE) -and ($env:PYTHON_ARCH -eq "32")) { python -m twine upload dist/* }'

build: false  # Not a C# project, build stuff at the test step instead.

test_script:
  # Build the compiled extension and run the project tests
  - "%CMD_IN_ENV% python -m pytest -n 0 tests/cover"
  - "%CMD_IN_ENV% python -m pytest -n 0 tests/datetime"
  - "%CMD_IN_ENV% python -m pytest -n 0 tests/fakefactory"
  - "%CMD_IN_ENV% python -m pip.__main__ uninstall flaky -y"
  - "%CMD_IN_ENV% python -m pytest -n 0 tests/pytest -p pytester --runpytest subprocess"