Skip to content

Commit

Permalink
Merge pull request #1923 from Zac-HD/windows-ci
Browse files Browse the repository at this point in the history
Run most tests under Windows on Pipelines
  • Loading branch information
Zac-HD authored Apr 19, 2019
2 parents 571b767 + f3bcbc3 commit 0569d1c
Showing 1 changed file with 53 additions and 54 deletions.
107 changes: 53 additions & 54 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,59 @@ jobs:
- script: ./build.sh
displayName: Run build tasks

- job: main
- job: windows
dependsOn: precheck
pool:
vmImage: 'windows-2019'
strategy:
matrix:
check-py27-x64:
python.version: '2.7'
python.architecture: 'x64'
check-py27-x86:
python.version: '2.7'
python.architecture: 'x86'
check-py36-x64:
python.version: '3.6'
python.architecture: 'x64'
check-py36-x86:
python.version: '3.6'
python.architecture: 'x86'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: '$(python.architecture)'
- script: |
pip install --upgrade setuptools pip wheel
pip install setuptools -r requirements/test.txt
pip install hypothesis-python/[all]
displayName: Install dependencies
- script: |
cd hypothesis-python
pytest tests/cover/ tests/datetime/ tests/dpcontracts/ tests/lark/ tests/numpy/ tests/pandas/ tests/pytest/
displayName: Run tests
- job: osx
dependsOn: precheck
pool:
vmImage: 'macOS-10.13'
strategy:
matrix:
check-py27:
TASK: check-py27
check-py36:
TASK: check-py36
steps:
- script: |
brew update
brew install readline xz ncurses
./build.sh install-core
displayName: Install dependencies
- script: ./build.sh
displayName: Run tests

- job: linux
dependsOn: precheck
pool:
vmImage: 'Ubuntu 16.04'
Expand Down Expand Up @@ -98,57 +150,4 @@ jobs:
- script: ./build.sh
displayName: Run tests

- job: windows
dependsOn: precheck
pool:
vmImage: 'windows-2019'
strategy:
matrix:
check-py27-x64:
python.version: '2.7'
python.architecture: 'x64'
check-py27-x86:
python.version: '2.7'
python.architecture: 'x86'
check-py36-x64:
python.version: '3.6'
python.architecture: 'x64'
check-py36-x86:
python.version: '3.6'
python.architecture: 'x86'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: '$(python.architecture)'
# TODO: installing `hypothesis-python/[all]` leads to some Numpy-related
# errors at pytest collection time, but I'm not sure why. Once we fix
# that, we can test the extras on Windows, and thus drop Appveyor.
- script: |
python -m pip install --upgrade setuptools pip wheel twine
python -m pip install setuptools -r requirements/test.txt
python -m pip install hypothesis-python/
displayName: Install dependencies
- script: python -m pytest hypothesis-python/tests/cover
displayName: Run tests

- job: osx
dependsOn: precheck
pool:
vmImage: 'macOS-10.13'
strategy:
matrix:
check-py27:
TASK: check-py27
check-py36:
TASK: check-py36
steps:
- script: |
brew update
brew install readline xz ncurses
./build.sh install-core
displayName: Install dependencies
- script: ./build.sh
displayName: Run tests

# TODO: Deploy jobs dependent on above

0 comments on commit 0569d1c

Please sign in to comment.