Merge pull request #601 from cubbimew/issue583
[CppCoreGuidelines.git] / .travis.yml
blob222ad98428ed7f1831a1d30f60161c06ad5c566b
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
4 sudo: false
6 # provides gcc, clang, make, scons, cmake
7 language: c++
9 # alternatives: gcc, clang, or both (as yaml list)
10 compiler: clang
12 install:
13  -
15 script:
16  - cd scripts; make -k
17  - cd ..
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;
30 notifications:
31   email: false