Skip to content

Commit

Permalink
Merge branch 'feature/ci-windows' into 'master'
Browse files Browse the repository at this point in the history
Run CI on Windows

Closes python#99

See merge request python-devs/importlib_resources!106
  • Loading branch information
jaraco committed Jun 30, 2020
2 parents 3e6c99e + 3c3bb3d commit e8a8572
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,28 @@ tests:
script:
- tox -e py27,py35,py36,py37,py38

Windows tests:
extends: tests
tags:
- windows
before_script:
# allow chocolatey to install without confirmation
- choco feature enable -n allowGlobalConfirmation
# Install latest stable Python
- choco install python
# Link latest stable Python to C:\Python
- cmd /c mklink /d C:\Python Python38
# Add Python and its scripts to the Path
- $env:PATH = 'C:\Python;C:\Python\Scripts;' + $env:PATH
# Install older Pythons
- choco install python --side-by-side --version=3.7.6
- choco install python --side-by-side --version=3.6.8
- choco install python --side-by-side --version=3.5.4.20200110
- choco install python2
# Install latest pip and tox
- py -m pip install -U pip
- py -m pip install tox

coverage:
script:
- tox -e py27-cov,py35-cov,py36-cov,py37-cov,py38-cov
Expand Down

0 comments on commit e8a8572

Please sign in to comment.