Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1998 from Zac-HD/less-ci
Consolidate CI platforms
- Loading branch information
Showing
6 changed files
with
6 additions
and
112 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1 @@ | ||
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: https://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 https://www.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/pytest -p pytester --runpytest subprocess" | ||
build: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ passenv= | |
LC_ALL | ||
COVERAGE_FILE | ||
TOXENV | ||
CIRCLECI | ||
setenv= | ||
brief: HYPOTHESIS_PROFILE=speedy | ||
commands = | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters