File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,18 +11,47 @@ matrix:
1111 packages :
1212 - clang-format-7
1313 compiler : clang
14+ - os : linux
15+ if : branch = master
16+ dist : xenial
17+ env : TOOL=docs
18+ addons :
19+ apt :
20+ sources :
21+ - ubuntu-toolchain-r-test
22+ packages :
23+ - cmake
24+ - doxygen
25+ - doxygen-doc
26+ - doxygen-latex
27+ - doxygen-gui
28+ - graphviz
29+ deploy :
30+ provider : pages
31+ skip_cleanup : true
32+ github_token : $GITHUB_API_TOKEN
33+ local_dir : build/doc/html
34+ on :
35+ branch : master
1436script :
1537 - if [[ $TOOL == "clang-format" ]] && [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
16- cd $TRAVIS_BUILD_DIR;
17- BASE_COMMIT=$(git rev-parse $TRAVIS_BRANCH);
18- COMMIT_FILES=$(git diff --name-only $BASE_COMMIT | grep -i -v LinkDef);
19- RESULT_OUTPUT="$(git-clang-format-7 --commit $BASE_COMMIT --diff --binary `which clang-format-7` $COMMIT_FILES)";
20- if [ "$RESULT_OUTPUT" == "no modified files to format" ] || [ "$RESULT_OUTPUT" == "clang-format did not modify any files" ] ; then
21- exit 0;
22- else
23- echo "$RESULT_OUTPUT";
24- exit 1;
25- fi
38+ cd $TRAVIS_BUILD_DIR;
39+ BASE_COMMIT=$(git rev-parse $TRAVIS_BRANCH);
40+ COMMIT_FILES=$(git diff --name-only $BASE_COMMIT | grep -i -v LinkDef);
41+ RESULT_OUTPUT="$(git-clang-format-7 --commit $BASE_COMMIT --diff --binary `which clang-format-7` $COMMIT_FILES)";
42+ if [ "$RESULT_OUTPUT" == "no modified files to format" ] || [ "$RESULT_OUTPUT" == "clang-format did not modify any files" ] ; then
43+ exit 0;
44+ else
45+ echo "$RESULT_OUTPUT";
46+ exit 1;
47+ fi
48+ fi
49+ - if [[ $TOOL == "docs" ]]; then
50+ echo "add_subdirectory(doc)" > CMakeLists.txt;
51+ mkdir build;
52+ cd build;
53+ cmake ..;
54+ make doc;
2655 fi
2756notifications :
2857 email : false
You can’t perform that action at this time.
0 commit comments