mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-05-01 21:23:52 +00:00
22 lines
614 B
Bash
Executable File
22 lines
614 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
echo -en "travis_fold:start:script.build\\r"
|
|
echo "Building with tidy on..."
|
|
set -evx
|
|
|
|
mkdir -p build-tidy
|
|
cd build-tidy
|
|
CXX_FLAGS="-Werror -Wcast-align -Wfloat-equal -Wimplicit-atomic-properties -Wmissing-declarations -Woverlength-strings -Wshadow -Wstrict-selector-match -Wundeclared-selector -Wunreachable-code -std=c++11" cmake .. -DCLANG_TIDY_FIX=ON
|
|
cmake --build .
|
|
|
|
set -evx
|
|
echo -en "travis_fold:end:script.build\\r"
|
|
echo -en "travis_fold:start:script.compare\\r"
|
|
echo "Checking git diff..."
|
|
set -evx
|
|
|
|
git diff --exit-code --color
|
|
|
|
set +evx
|
|
echo -en "travis_fold:end:script.compare\\r"
|