Skip to content

Commit 576a575

Browse files
committed
Run Travis tests on macOS as well
1 parent 8fd2b21 commit 576a575

File tree

1 file changed

+28
-12
lines changed

1 file changed

+28
-12
lines changed

.travis.yml

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,36 @@
44
# of the required Python 2.7.
55
language: generic
66

7+
os:
8+
- linux
9+
- osx
10+
11+
# On Ubuntu:
12+
# - coreutils is for readlink.
13+
# - Python 2.7 for clang-format-diff.
14+
# - Python 3.4 for the actual tests.
715
before_install:
8-
- sudo apt-get update
9-
# coreutils is for readlink.
10-
# Python 2.7 for clang-format-diff.
11-
# Python 3.4 for the actual tests.
1216
- >
13-
sudo apt-get install -y \
14-
clang-format-3.8 \
15-
coreutils \
16-
python2.7 \
17-
python3-pip \
18-
python3.4 \
19-
shellcheck
20-
- sudo pip3 install pylint
17+
if [ "$TRAVIS_OS_NAME" = osx ]; then \
18+
brew update && \
19+
brew upgrade python && \
20+
brew install \
21+
clang-format \
22+
shellcheck \
23+
&& \
24+
sudo pip3 install pylint; \
25+
else \
26+
sudo apt-get update && \
27+
sudo apt-get install -y \
28+
clang-format-3.8 \
29+
coreutils \
30+
python2.7 \
31+
python3-pip \
32+
python3.4 \
33+
shellcheck \
34+
&& \
35+
sudo pip3 install pylint; \
36+
fi
2137
2238
script:
2339
- ./run-checks

0 commit comments

Comments
 (0)