Skip to content

Commit

Permalink
Merge pull request #334 from ax3l/topic-ciSkipTidyIWYU
Browse files Browse the repository at this point in the history
Travis: Skip clang-tidy & IWYU
  • Loading branch information
ax3l authored Sep 6, 2018
2 parents 369efe8 + d415971 commit 9138066
Showing 1 changed file with 99 additions and 99 deletions.
198 changes: 99 additions & 99 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,105 +62,105 @@ jobs:
###########################################################################
# Stage: Static Code Analysis #
###########################################################################
- &static_code_cpp
stage: 'Static Code Analysis'
name: [email protected] +IncludeWhatYouUse
sudo: true
language: python
python: "2.7"
compiler: clang
env:
- CXXSPEC="%[email protected]" USE_MPI=ON USE_PYTHON=ON USE_HDF5=ON USE_ADIOS1=ON USE_ADIOS2=OFF
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- llvm-5.0-dev
- libclang-5.0-dev
- clang-5.0
- libopenmpi-dev
- openmpi-bin
- environment-modules
before_install:
- export CC=clang
- export CXX=clang++
- ROOT_PATH=`llvm-config-5.0 --prefix`
- BIN_PATH=`llvm-config-5.0 --bindir`
- if [ ! -f $BIN_PATH/iwyu_tool.py ]; then
git clone https://github.com/include-what-you-use/include-what-you-use.git &&
cd include-what-you-use &&
git checkout clang_5.0 &&
mkdir build &&
cd build &&
cmake -DIWYU_LLVM_ROOT_PATH=$ROOT_PATH -DCMAKE_C_COMPILER=$BIN_PATH/clang -DCMAKE_CXX_COMPILER=$BIN_PATH/clang++ -DCMAKE_INSTALL_PREFIX=$ROOT_PATH .. &&
make -j2 &&
sudo make install &&
cd ../.. &&
rm -rf include-what-you-use;
fi
- export PATH=$ROOT_PATH/bin:$PATH
before_script:
- mkdir -p $HOME/build
- cd $HOME/build
- cmake
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_BUILD_TYPE=Debug
-DopenPMD_USE_MPI=$USE_MPI
-DopenPMD_USE_HDF5=$USE_HDF5
-DopenPMD_USE_ADIOS1=$USE_ADIOS1
-DopenPMD_USE_ADIOS2=$USE_ADIOS2
-DopenPMD_USE_PYTHON=OFF
-DopenPMD_USE_INVASIVE_TESTS=ON
$TRAVIS_BUILD_DIR
script:
- cd $HOME/build
- python $BIN_PATH/iwyu_tool.py -v -j 2 -p . > iwyu.log
- cat iwyu.log
- if [[ $(wc -l <iwyu.log) -ge 1 ]]; then
exit 1;
fi
after_script: exit $?
- <<: *static_code_cpp
name: [email protected]
sudo: false
env:
- CXXSPEC="%[email protected]" USE_MPI=ON USE_PYTHON=ON USE_HDF5=ON USE_ADIOS1=ON USE_ADIOS2=OFF
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- clang-5.0
- clang-tidy-5.0
- libopenmpi-dev
- openmpi-bin
- environment-modules
before_install:
- CC=clang CXX=clang++
before_script:
- mkdir -p $HOME/build
- cd $HOME/build
- cmake
"-DCMAKE_CXX_CLANG_TIDY=$(which clang-tidy-5.0);-system-headers=0"
-DCMAKE_BUILD_TYPE=Debug
-DopenPMD_USE_MPI=$USE_MPI
-DopenPMD_USE_HDF5=$USE_HDF5
-DopenPMD_USE_ADIOS1=$USE_ADIOS1
-DopenPMD_USE_ADIOS2=$USE_ADIOS2
-DopenPMD_USE_PYTHON=OFF
-DopenPMD_USE_INVASIVE_TESTS=ON
$TRAVIS_BUILD_DIR
script:
- cd $HOME/build
- make -j 2 2> clang-tidy.log
- cat clang-tidy.log
- if [[ $(wc -l <clang-tidy.log) -ge 1 ]]; then
exit 1;
fi
after_script: exit $?
# - &static_code_cpp
# stage: 'Static Code Analysis'
# name: [email protected] +IncludeWhatYouUse
# sudo: true
# language: python
# python: "2.7"
# compiler: clang
# env:
# - CXXSPEC="%[email protected]" USE_MPI=ON USE_PYTHON=ON USE_HDF5=ON USE_ADIOS1=ON USE_ADIOS2=OFF
# addons:
# apt:
# sources:
# - ubuntu-toolchain-r-test
# - llvm-toolchain-trusty-5.0
# packages:
# - llvm-5.0-dev
# - libclang-5.0-dev
# - clang-5.0
# - libopenmpi-dev
# - openmpi-bin
# - environment-modules
# before_install:
# - export CC=clang
# - export CXX=clang++
# - ROOT_PATH=`llvm-config-5.0 --prefix`
# - BIN_PATH=`llvm-config-5.0 --bindir`
# - if [ ! -f $BIN_PATH/iwyu_tool.py ]; then
# git clone https://github.com/include-what-you-use/include-what-you-use.git &&
# cd include-what-you-use &&
# git checkout clang_5.0 &&
# mkdir build &&
# cd build &&
# cmake -DIWYU_LLVM_ROOT_PATH=$ROOT_PATH -DCMAKE_C_COMPILER=$BIN_PATH/clang -DCMAKE_CXX_COMPILER=$BIN_PATH/clang++ -DCMAKE_INSTALL_PREFIX=$ROOT_PATH .. &&
# make -j2 &&
# sudo make install &&
# cd ../.. &&
# rm -rf include-what-you-use;
# fi
# - export PATH=$ROOT_PATH/bin:$PATH
# before_script:
# - mkdir -p $HOME/build
# - cd $HOME/build
# - cmake
# -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
# -DCMAKE_BUILD_TYPE=Debug
# -DopenPMD_USE_MPI=$USE_MPI
# -DopenPMD_USE_HDF5=$USE_HDF5
# -DopenPMD_USE_ADIOS1=$USE_ADIOS1
# -DopenPMD_USE_ADIOS2=$USE_ADIOS2
# -DopenPMD_USE_PYTHON=OFF
# -DopenPMD_USE_INVASIVE_TESTS=ON
# $TRAVIS_BUILD_DIR
# script:
# - cd $HOME/build
# - python $BIN_PATH/iwyu_tool.py -v -j 2 -p . > iwyu.log
# - cat iwyu.log
# - if [[ $(wc -l <iwyu.log) -ge 1 ]]; then
# exit 1;
# fi
# after_script: exit $?
# - <<: *static_code_cpp
# name: [email protected]
# sudo: false
# env:
# - CXXSPEC="%[email protected]" USE_MPI=ON USE_PYTHON=ON USE_HDF5=ON USE_ADIOS1=ON USE_ADIOS2=OFF
# addons:
# apt:
# sources:
# - ubuntu-toolchain-r-test
# - llvm-toolchain-trusty-5.0
# packages:
# - clang-5.0
# - clang-tidy-5.0
# - libopenmpi-dev
# - openmpi-bin
# - environment-modules
# before_install:
# - CC=clang CXX=clang++
# before_script:
# - mkdir -p $HOME/build
# - cd $HOME/build
# - cmake
# "-DCMAKE_CXX_CLANG_TIDY=$(which clang-tidy-5.0);-system-headers=0"
# -DCMAKE_BUILD_TYPE=Debug
# -DopenPMD_USE_MPI=$USE_MPI
# -DopenPMD_USE_HDF5=$USE_HDF5
# -DopenPMD_USE_ADIOS1=$USE_ADIOS1
# -DopenPMD_USE_ADIOS2=$USE_ADIOS2
# -DopenPMD_USE_PYTHON=OFF
# -DopenPMD_USE_INVASIVE_TESTS=ON
# $TRAVIS_BUILD_DIR
# script:
# - cd $HOME/build
# - make -j 2 2> clang-tidy.log
# - cat clang-tidy.log
# - if [[ $(wc -l <clang-tidy.log) -ge 1 ]]; then
# exit 1;
# fi
# after_script: exit $?
- &static_code_python
stage: 'Static Code Analysis'
name: pyflakes 2.7
Expand Down

0 comments on commit 9138066

Please sign in to comment.