forked from isocpp/CppCoreGuidelines
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
31 lines (22 loc) · 1017 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This is the configuration for Travis CI, a free github-integrated service that runs this script for each pull request (if configured)
# Be nice to travis, allow docker builds, must not use sudo below
sudo: false
# provides gcc, clang, make, scons, cmake
language: c++
# alternatives: gcc, clang, or both (as yaml list)
compiler: clang
install:
-
script:
- cd scripts; make -k
- cd ..
## find lines with tabs
# - rm -f CppCoreGuidelines.md.tabs
# - cat CppCoreGuidelines.md | nl -ba | sed -s 's/\(^[^\t]*\)\t/\1--/g' | grep $'\t' | sed -s 's/\t/\*\*\*\*/g' > CppCoreGuidelines.md.tabs
# - if [[ -s CppCoreGuidelines.md.tabs ]]; then echo 'Tabs found'; cat CppCoreGuidelines.md.tabs; false; fi;
## check references unique
- rm -f CppCoreGuidelines.md.uniq
- grep -oP '(?<=<a name=")[^\"]+' CppCoreGuidelines.md | uniq -d > CppCoreGuidelines.md.uniq
- if [[ -s CppCoreGuidelines.md.uniq ]]; then echo 'Found duplicate anchors:'; cat CppCoreGuidelines.md.uniq; false; fi;
notifications:
email: false