Skip to content

Commit e8a8572

Browse files
committed
Merge branch 'feature/ci-windows' into 'master'
Run CI on Windows Closes #99 See merge request python-devs/importlib_resources!106
2 parents 3e6c99e + 3c3bb3d commit e8a8572

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.gitlab-ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,28 @@ tests:
1313
script:
1414
- tox -e py27,py35,py36,py37,py38
1515

16+
Windows tests:
17+
extends: tests
18+
tags:
19+
- windows
20+
before_script:
21+
# allow chocolatey to install without confirmation
22+
- choco feature enable -n allowGlobalConfirmation
23+
# Install latest stable Python
24+
- choco install python
25+
# Link latest stable Python to C:\Python
26+
- cmd /c mklink /d C:\Python Python38
27+
# Add Python and its scripts to the Path
28+
- $env:PATH = 'C:\Python;C:\Python\Scripts;' + $env:PATH
29+
# Install older Pythons
30+
- choco install python --side-by-side --version=3.7.6
31+
- choco install python --side-by-side --version=3.6.8
32+
- choco install python --side-by-side --version=3.5.4.20200110
33+
- choco install python2
34+
# Install latest pip and tox
35+
- py -m pip install -U pip
36+
- py -m pip install tox
37+
1638
coverage:
1739
script:
1840
- tox -e py27-cov,py35-cov,py36-cov,py37-cov,py38-cov

0 commit comments

Comments
 (0)