File tree Expand file tree Collapse file tree 1 file changed +28
-12
lines changed Expand file tree Collapse file tree 1 file changed +28
-12
lines changed Original file line number Diff line number Diff line change 44# of the required Python 2.7.
55language : 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.
715before_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
2238script :
2339 - ./run-checks
You can’t perform that action at this time.
0 commit comments