File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ language: python
6
6
python :
7
7
- " 2.7"
8
8
- " 3.7"
9
+ matrix : # macos can't be listed in 'os' as we need to set 'generic' as language (because travis doesn't support python on macos for now)
10
+ include :
11
+ - os : osx
12
+ language : generic
9
13
cache : pip
10
14
install :
11
15
- pip install -r tests/sources/requirements.txt
@@ -14,6 +18,10 @@ addons:
14
18
apt :
15
19
packages :
16
20
- clang-format-5.0
21
+ homebrew :
22
+ packages :
23
+ - clang-format
24
+ - python
17
25
script :
18
26
- python -m unittest discover -s tests/sources
19
27
- python -m unittest discover -s docs/tests
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ def setUp(self):
91
91
def _runClangFormat (self , f ):
92
92
"""Run clang format on 'f' file."""
93
93
clangFormatCommand = "clang-format"
94
- if 'TRAVIS' in os .environ :
94
+ if 'TRAVIS' in os .environ and 'TRAVIS_OS_NAME' in os . environ and os . environ [ 'TRAVIS_OS_NAME' ] == 'linux' :
95
95
clangFormatCommand = "clang-format-5.0"
96
96
return subprocess .check_output ([clangFormatCommand , "-style=file" , f ])
97
97
You can’t perform that action at this time.
0 commit comments