Skip to content

Commit 10f6652

Browse files
committed
Travis CI: Also test on windows
1 parent fc8791a commit 10f6652

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

.travis.yml

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
1-
language: python
2-
python:
3-
- 3.6
4-
- 3.7
51
os: linux
62
dist: xenial
3+
language: python
4+
5+
jobs:
6+
include:
7+
- name: "Ubuntu / Python 3.6"
8+
python: 3.6
9+
- name: "Ubuntu / Python 3.7"
10+
python: 3.7
11+
- name: "Windows / Python 3.6"
12+
os: windows
13+
language: shell
14+
before_install:
15+
- choco install python --version 3.6.8
16+
env:
17+
- PATH=/c/Python36:/c/Python36/Scripts:$PATH
18+
- SKIP=check-executables-have-shebangs
19+
- name: "Windows / Python 3.7"
20+
os: windows
21+
language: shell
22+
before_install:
23+
- choco install python --version 3.7.8
24+
env:
25+
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
26+
- SKIP=check-executables-have-shebangs
27+
728
cache:
829
pip: true
930

@@ -22,8 +43,8 @@ script:
2243

2344
# Deployment
2445
before_deploy:
25-
- touch html/.nojekyll
26-
- cp assets/gh-pages-redirect.html html/index.html
46+
- touch html/.nojekyll
47+
- cp assets/gh-pages-redirect.html html/index.html
2748
deploy:
2849
# Deploy documentation
2950
- provider: pages
@@ -35,6 +56,7 @@ deploy:
3556
branch: master
3657
repo: Holzhaus/sphinx-multiversion
3758
python: 3.7
59+
os: linux
3860

3961
# Deploy to PyPI
4062
- deploy:
@@ -48,6 +70,7 @@ deploy:
4870
branch: master
4971
repo: Holzhaus/sphinx-multiversion
5072
tags: true
73+
os: linux
5174

5275
# Deploy to Github Releases
5376
- provider: releases
@@ -65,3 +88,4 @@ deploy:
6588
repo: Holzhaus/sphinx-multiversion
6689
tags: true
6790
python: 3.7
91+
os: linux

0 commit comments

Comments
 (0)