Skip to content

Commit 33e1d16

Browse files
committed
Try running in Windows Build Environment with Travis
1 parent 30d4c5a commit 33e1d16

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

.travis.yml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,45 @@
11
language: python
2+
23
matrix:
34
include:
4-
- python: 2.7
5+
- os: linux
6+
python: 2.7
57
env: TOXENV=flake8,py27-crypto,py27-nocrypto,py27-contrib_crypto
6-
- python: 3.4
8+
- os: linux
9+
python: 3.4
710
env: TOXENV=flake8,py34-crypto,py34-nocrypto
8-
- python: 3.5
11+
- os: linux
12+
python: 3.5
913
env: TOXENV=flake8,py35-crypto,py35-nocrypto,py35-contrib_crypto
10-
- python: 3.6
14+
- os: linux
15+
python: 3.6
1116
env: TOXENV=flake8,py36-crypto,py36-nocrypto,py36-contrib_crypto
12-
- python: 3.7
17+
- os: linux
18+
python: 3.7
1319
env: TOXENV=flake8,py37-crypto,py37-nocrypto,py37-contrib_crypto
1420
dist: xenial
21+
- os: windows
22+
language: sh
23+
python: 2.7
24+
env: TOXENV=flake8,py27-crypto,py27-nocrypto,py27-contrib_crypto
25+
before_install:
26+
- choco install python --version 2.7.11
27+
- export PATH="/c/Python27:/c/Python27/Scripts:$PATH"
28+
- curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
29+
- python get-pip.py
30+
- python -m pip install --upgrade pip wheel
31+
1532
before_install:
16-
- sudo apt-get install python3-pip # required to install mypy
33+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install python3-pip; fi # required to install mypy
34+
1735
install:
1836
- pip install -U pip
1937
- pip install -U tox coveralls
20-
- sudo python3 -m pip install -U mypy # python3.4+ required to run mypy
38+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo python3 -m pip install -U mypy; fi # python3.4+ required to run mypy
39+
2140
script:
2241
- tox
2342
- mypy --ignore-missing-imports jwt
43+
2444
after_success:
2545
- coveralls

0 commit comments

Comments
 (0)