Skip to content

Commit 750dfa3

Browse files
committed
Move cpplint invocation into a separate job
1 parent d0c2c77 commit 750dfa3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,19 @@ matrix:
4343
- env: BUILD_TYPE=Debug CC_COMPILER=gcc-${GCC_VERSION} CXX_COMPILER=g++-${GCC_VERSION}
4444
addons: *gcc
4545

46+
- env:
47+
install:
48+
before_script:
49+
script:
50+
- travis_retry wget --quiet -O - https://raw.githubusercontent.com/cpplint/cpplint/master/cpplint.py | python - --recursive src examples
51+
4652
install:
4753
- mkdir -p deps && cd deps
4854
- travis_retry wget --no-check-certificate --quiet -O - https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz | tar --strip-components=1 -xz
4955
- export PATH=${TRAVIS_BUILD_DIR}/deps/bin:${PATH}
5056
- cd -
5157

5258
before_script:
53-
- travis_retry wget --quiet -O - https://raw.githubusercontent.com/cpplint/cpplint/master/cpplint.py | python - --recursive src examples
5459
- mkdir -p build && cd build
5560
- rm -rf *
5661
- cmake .. -GNinja -DLIB_PROTO_MUTATOR_WITH_ASAN=ON -DLIB_PROTO_MUTATOR_DOWNLOAD_PROTOBUF=ON -DCMAKE_C_COMPILER=${CC_COMPILER} -DCMAKE_CXX_COMPILER=${CXX_COMPILER} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=/usr
@@ -59,4 +64,4 @@ script:
5964
- export ASAN_OPTIONS=detect_leaks=0
6065
- ninja
6166
- ninja check
62-
- DESTDIR="/tmp/testing/" ninja install
67+
- DESTDIR="/tmp/testing/" ninja install

0 commit comments

Comments
 (0)