Skip to content

Commit

Permalink
travis: add Doxygen integration build job
Browse files Browse the repository at this point in the history
Add doxygen build job to `travis.yml`.

Create doxygen build function:
1. Download stable Doxygen version (1.8.13).
2. Build doxygen.
3. Generate documentation.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
  • Loading branch information
amiclaus committed Jan 8, 2020
1 parent 1ab386b commit 6d4deb9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Expand Up @@ -5,12 +5,19 @@ sudo: required
os: linux

env:
global:
secure: "e2aIzAsFnISWA+43i6tF/hS3l6k4eI/k7/5ZBzrpcPxT2R/PqVL1AcDndBQFLFVAX9lACnMBIEhK8jxvK2VGNwACp/gLG4RNyB5oE+HQqcUY1ntdjVmAAVzDKzG23mPlXIQzGFeZ861BuiO4GSqEBsd2c0Nm7jXf2rSuHizkId8="
matrix:
- BUILD_TYPE=astyle
- BUILD_TYPE=cppcheck
- BUILD_TYPE=ad9361_generic
- BUILD_TYPE=ad9361_linux
- BUILD_TYPE=drivers
- BUILD_TYPE=doxygen

before_install:
- export DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir -p ${DEPS_DIR}

script:
- ./ci/travis/run_build.sh
26 changes: 26 additions & 0 deletions ci/travis/run_build.sh
Expand Up @@ -29,4 +29,30 @@ build_drivers() {
make -C ./drivers -f Makefile
}

build_doxygen() {
sudo apt-get install -y graphviz
# Install a recent version of doxygen
DOXYGEN_URL="https://sourceforge.net/projects/doxygen/files/rel-1.8.13/doxygen-1.8.13.src.tar.gz/"
cd ${DEPS_DIR}
[ -d "doxygen" ] || {
mkdir doxygen && wget --quiet -O - ${DOXYGEN_URL} | tar --strip-components=1 -xz -C doxygen
}

# Install Doxygen
cd doxygen
mkdir -p build && cd build
cmake ..
make -j${NUM_JOBS}
sudo make install
cd ../..

# Build Documentation
cd ${TRAVIS_BUILD_DIR}/doc
mkdir -p build && cd build
cmake ..
cd ../..

./ci/travis/doxygen.sh
}

build_${BUILD_TYPE}

0 comments on commit 6d4deb9

Please sign in to comment.