mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Travis-CI deploy to GH Pages (#21)
build - Travis-CI deploy to GH Pages - Scripts/config necessary to allow automatic build/deploy from Travis-CI
This commit is contained in:
parent
deaa367a1d
commit
a3e446bbb0
5 changed files with 146 additions and 309 deletions
39
scripts/build-install-doxygen.sh
Normal file
39
scripts/build-install-doxygen.sh
Normal file
|
@ -0,0 +1,39 @@
|
|||
#!/bin/sh
|
||||
set -ex
|
||||
|
||||
file="$TRAVIS_BUILD_DIR/doxygen-install/doxygen"
|
||||
|
||||
# Only build Doxygen if the binary isn't found
|
||||
if [ -f "$file" ]
|
||||
then
|
||||
echo "Doxygen binary found. Skipping build."
|
||||
else
|
||||
|
||||
echo "Doxygen binary not found. Building from source..."
|
||||
|
||||
# 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
|
||||
|
||||
cd doxygen-src
|
||||
|
||||
# Use v1.8.14 (2f4139de014bf03898320a45fe52c92872c1e0f4)
|
||||
git checkout 2f4139de014bf03898320a45fe52c92872c1e0f4 .
|
||||
|
||||
echo "Create build folder..."
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
echo "Make..."
|
||||
cmake -G "Unix Makefiles" ..
|
||||
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
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue