1- # This deliberately is not "python" as a work-around to support
2- # multi-os builds with custom Python versions in Travis CI.
3- language : cpp
4-
5- os :
6- - osx
7- - linux
1+ language : generic
82
93env :
104 matrix :
11- - PYTHON_EXE="`pyenv install -s 2.7.13 && pyenv local 2.7.13`"
12- - PYTHON_EXE="`pyenv install -s 3.5.3 && pyenv local 3.5.3`"
5+ - PYTHON_EXE="`pyenv install -s 2.7.14 && pyenv local 2.7.14`"
136 - PYTHON_EXE="`pyenv install -s 3.6.1 && pyenv local 3.6.1`"
147
8+
9+ # Travis does not offer OSX with arbitrary python versions (like 2.7.13 above)
10+ # So, you cannot simply have the following section in your build matrix:
11+ # os:
12+ # - linux
13+ # - osx
14+ # Instead, you have to include OSX entries into the build matrix manually.
15+ # In particular, this means specifying the environment variables again.
16+
17+ # The following was adapted from here:
18+ # https://docs.travis-ci.com/user/multi-os/
19+ # Set `language: generic` to clear `language: python` from above
20+ # Set `python:` (to empty) to clear it from the travis-ci web interface
21+ # Set `osx_image: xcode7.3` to pin OSX version see here:
22+ # https://docs.travis-ci.com/user/osx-ci-environment/
23+
24+ matrix :
25+ include :
26+ - os : osx
27+ language : generic
28+ python :
29+ osx_image : xcode7.3
30+ env : PYTHON_EXE="`pyenv install -s 2.7.14 && pyenv local 2.7.14`"
31+ - os : osx
32+ language : generic
33+ python :
34+ osx_image : xcode7.3
35+ env : PYTHON_EXE="`pyenv install -s 3.6.1 && pyenv local 3.6.1`"
36+
37+
1538install :
1639 - pyenv install --list
40+ - echo $PYTHON_EXE
41+ - python --version
1742 - ./configure
1843
1944before_script :
20- - bin/pip install aboutcode-toolkit
21- - bin/about-code check --show-all .
45+ - bin/about-code check --verbose .
2246
2347script :
2448 - " bin/py.test -vvs"
@@ -32,4 +56,4 @@ notifications:
3256 use_notice : true
3357 skip_join : true
3458 template :
35- - " %{repository_slug}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} : %{build_url}"
59+ - " %{repository_slug}#%{build_number} (%{branch}- %{commit}: %{author})- %{message}- %{build_url}"
0 commit comments