1 # This is the configuration for Travis CI, a free github-integrated service that runs this script for each pull request (if configured)
3 # Be nice to travis, allow docker builds, must not use sudo below
6 # provides gcc, clang, make, scons, cmake
9 # alternatives: gcc, clang, or both (as yaml list)
19 ## find lines with tabs
20 # - rm -f CppCoreGuidelines.md.tabs
21 # - cat CppCoreGuidelines.md | nl -ba | sed -s 's/\(^[^\t]*\)\t/\1--/g' | grep $'\t' | sed -s 's/\t/\*\*\*\*/g' > CppCoreGuidelines.md.tabs
22 # - if [[ -s CppCoreGuidelines.md.tabs ]]; then echo 'Tabs found'; cat CppCoreGuidelines.md.tabs; false; fi;
24 ## check references unique
25 - rm -f CppCoreGuidelines.md.uniq
26 - grep -oP '(?<=<a name=")[^\"]+' CppCoreGuidelines.md | uniq -d > CppCoreGuidelines.md.uniq
27 - if [[ -s CppCoreGuidelines.md.uniq ]]; then echo 'Found duplicate anchors:'; cat CppCoreGuidelines.md.uniq; false; fi;