File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11language : cpp
22
3+ env :
4+ global :
5+ - BUILD_DOCS=false
6+
37compiler :
48 - gcc
59 - clang
610
711dist : trusty
812
13+ matrix :
14+ include :
15+ - env : BUILD_DOCS=true
16+
917before_install :
1018 - sudo apt-get update -qq
1119 - sudo apt-get install cmake libboost-python-dev libcups2-dev libhunspell-dev
@@ -16,14 +24,25 @@ before_install:
1624 libcdr-dev libvisio-dev
1725
1826script :
19- - if [[ $CC == gcc ]]; then
20- export NPROC=8;
27+ - |
28+ if [[ $BUILD_DOCS == false ]]; then
29+ if [[ $CC == gcc ]]; then
30+ export NPROC=8;
31+ else
32+ export NPROC=1;
33+ fi
34+
35+ cmake .
36+ make -j$NPROC
2137 else
22- export NPROC=1;
23- fi
38+ cd doc
39+ doxygen
2440
25- - cmake .
26- - make -j$NPROC
41+ after_success :
42+ |
43+ if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'scribusproject/scribus' && $BUILD_DOCS == true && $TRAVIS_BRANCH == 'master' ]]; then
44+ cd $TRAVIS_BUILD_DIR
45+ echo "Uploading documentation"
2746
2847notifications :
2948 email : false
You can’t perform that action at this time.
0 commit comments