diff options
author | Heejin Ahn <aheejin@gmail.com> | 2019-04-29 11:28:40 -0700 |
---|---|---|
committer | Heejin Ahn <aheejin@gmail.com> | 2019-04-29 11:28:40 -0700 |
commit | 6ef03f511a98565cb62d8e50940bcda95599e7f6 (patch) | |
tree | 6ec81dd299476b9a9603bb475fc64a1e3eaed06c | |
parent | 78f22b7eb7d1ee2525eff5f7e9f240142ea03d2b (diff) | |
download | binaryen-6ef03f511a98565cb62d8e50940bcda95599e7f6.tar.gz binaryen-6ef03f511a98565cb62d8e50940bcda95599e7f6.tar.bz2 binaryen-6ef03f511a98565cb62d8e50940bcda95599e7f6.zip |
Run clang-tidy-diff.sh only if it exists
-rw-r--r-- | .travis.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index acd789b48..bf46930a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -65,7 +65,8 @@ jobs: - BUILD_SUBDIR=${BUILD_SUBDIR:-.} - mkdir -p ${BUILD_SUBDIR} && cd ${BUILD_SUBDIR} - cmake ${TRAVIS_BUILD_DIR} -DCMAKE_C_FLAGS="$COMPILER_FLAGS" -DCMAKE_CXX_FLAGS="$COMPILER_FLAGS" -DCMAKE_INSTALL_PREFIX=install -DCMAKE_EXPORT_COMPILE_COMMANDS=ON - - ${TRAVIS_BUILD_DIR}/clang-tidy-diff.sh + # clang-tidy-diff.sh may not exist when BUILD_SUBDIR is a subdirectory + - if [ -f clang-tidy-diff.sh ]; then ./clang-tidy-diff.sh; fi - make -j2 install - cd ${TRAVIS_BUILD_DIR} - ./check.py --binaryen-bin=${BUILD_SUBDIR}/install/bin |