Skip to content

Commit 27df3bb

Browse files
committed
Added the windows to the travis CI
1 parent 6778882 commit 27df3bb

1 file changed

Lines changed: 16 additions & 9 deletions

File tree

.travis.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,21 @@
11
language: python
2-
32
python:
43
- 2.7.13
5-
64
# Use a matrix of TEST_SUITE variables to distribute tests to several machines
75
# Use a global PYTEST variable to run all of the tests in a uniform fashion
86
env:
97
global:
108
- PYTEST="bin/py.test -n 2 -vvs"
11-
129
matrix:
1310
- TEST_SUITE="$PYTEST"
1411
- TEST_SUITE="./etc/release/release.sh"
15-
16-
1712
# Travis does not offer OSX with arbitrary python versions (like 2.7.13 above)
1813
# So, you can not simply have the following section in your build matrix:
1914
# os:
2015
# - linux
2116
# - osx
2217
# Instead, you have to include OSX entries into the build matrix manually.
2318
# In particular, this means specifying the environment variables again.
24-
2519
# The following was adapted from here:
2620
# https://docs.travis-ci.com/user/multi-os/
2721
# Set TEST_SUITE in `env:` so that the `script:` section below works
@@ -31,6 +25,22 @@ env:
3125
# https://docs.travis-ci.com/user/osx-ci-environment/
3226
matrix:
3327
include:
28+
- os: windows
29+
language: shell
30+
before_install:
31+
- choco install python2 -x86
32+
- ln -s /c/Python27/python.exe /c/Python27/python2.7.exe
33+
env:
34+
- PATH="/c/Python27:/c/Python27/Scripts:$PATH"
35+
- TEST_SUITE="$PYTEST"
36+
- os: windows
37+
language: shell
38+
before_install:
39+
- choco install python2 -x86
40+
- ln -s /c/Python27/python.exe /c/Python27/python2.7.exe
41+
env:
42+
- PATH="/c/Python27:/c/Python27/Scripts:$PATH"
43+
- TEST_SUITE="./etc/release/release.sh"
3444
- os: osx
3545
env: TEST_SUITE="$PYTEST"
3646
language: generic
@@ -41,13 +51,10 @@ matrix:
4151
language: generic
4252
python:
4353
osx_image: xcode7.3
44-
4554
install:
4655
- ./configure
47-
4856
script:
4957
- $TEST_SUITE
50-
5158
notifications:
5259
irc:
5360
channels:

0 commit comments

Comments
 (0)