config - Copy Doxygen binary to folder for caching once built

This commit is contained in:
thephez 2018-02-05 12:48:43 -05:00
parent e634177d3c
commit 9b8e4593cb
3 changed files with 6 additions and 4 deletions

View file

@ -5,7 +5,7 @@ sudo: false
cache: bundler
cache:
directories:
- $TRAVIS_BUILD_DIR/doxygen-src/build/bin
- $TRAVIS_BUILD_DIR/doxygen-install
env:
# http://docs.travis-ci.com/user/environment-variables/#Global-Variables
global:

View file

@ -1,8 +1,6 @@
#!/bin/sh
set -ex
echo $(ls doxygen-src/build/bin)
# Build instructions from: https://www.stack.nl/~dimitri/doxygen/download.html
echo "Cloning doxygen repository..."
git clone https://github.com/doxygen/doxygen.git doxygen-src
@ -23,4 +21,8 @@ make
echo "Done building doxygen..."
./bin/doxygen -v
echo "Copy Doxygen binary to folder for caching..."
mkdir -p $TRAVIS_BUILD_DIR/doxygen-install
cp bin/doxygen $TRAVIS_BUILD_DIR/doxygen-install/
cd $TRAVIS_BUILD_DIR

View file

@ -50,7 +50,7 @@ cp $TRAVIS_BUILD_DIR/doxygen/* doc/
##### Generate the Doxygen code documentation and log the output. #####
echo 'Generating Doxygen code documentation...'
# Redirect both stderr and stdout to the log file AND the console.
$TRAVIS_BUILD_DIR/doxygen-src/build/bin/doxygen doc/$DOXYFILE 2>&1 | tee doxygen.log
$TRAVIS_BUILD_DIR/doxygen-install/doxygen doc/$DOXYFILE 2>&1 | tee doxygen.log
echo 'Done generating Doxygen code documentation...'
#cat doxygen.log