-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1335 from rolanddenis/fix_doc
Fixing documentation checks and updating Travis build
- Loading branch information
Showing
31 changed files
with
270 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,54 @@ | ||
#!/bin/bash | ||
|
||
# Useful paths | ||
export SRC_DIR="$TRAVIS_BUILD_DIR" | ||
export BUILD_DIR="$SRC_DIR/build" | ||
|
||
# Options send to the set command. | ||
# e to exit immediately if a command fails | ||
# v to print each input lines as they are read (useful for debugging) | ||
export SET_OPTIONS=e | ||
|
||
# Commands at script begin and end | ||
export SCRIPT_BEGIN="set -$SET_OPTIONS" | ||
export SCRIPT_END="set +$SET_OPTIONS ; cd \"$SRC_DIR\"" | ||
|
||
# Debug | ||
echo $SCRIPT_BEGIN | ||
echo $SCRIPT_END | ||
|
||
$SCRIPT_BEGIN | ||
|
||
# Main steps configuration | ||
export BUILD_DOC="false" | ||
export UPLOAD_DOC="false" | ||
export NEEDCORE="true" | ||
export BUILD_DGTAL="false" | ||
export BUILD_EXAMPLES="false" | ||
export BUILD_TESTS="false" | ||
export BUILD_DEC="false" | ||
export BUILD_ALL="false" # Build DGtal, examples and tests | ||
|
||
export NEEDEXAMPLESANDTESTS="true"; | ||
export SRC_DIR="`pwd`" | ||
# Build default options | ||
export BTYPE= | ||
export BJOBS=2 # See https://docs.travis-ci.com/user/reference/overview/#Virtualisation-Environment-vs-Operating-System | ||
|
||
export CCOMPILER = $CC | ||
export CXXCOMPILER = $CXX | ||
if [ $CC == "gcc" ]; then export CCOMPILER=gcc-5 ; export CXXCOMPILER=g++-5; fi | ||
# Compiler configuration | ||
export CCOMPILER=$CC | ||
export CXXCOMPILER=$CXX | ||
if [ "$CC" == "gcc" ] | ||
then | ||
export CCOMPILER=gcc-5 | ||
export CXXCOMPILER=g++-5 | ||
fi | ||
|
||
# Build directory | ||
mkdir -p "$BUILD_DIR" | ||
|
||
export MAGICK_CONFIG_PATH=".travis/delegate.mgk" | ||
$MAGICK_CODER_MODULE_PATH | ||
$MAGICK_FILTER_MODULE_PATH | ||
##Preparing folders | ||
mkdir deps/ | ||
mkdir deps/local | ||
|
||
# Preparing folders | ||
mkdir -p "$SRC_DIR/deps/local" | ||
|
||
$SCRIPT_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
$SCRIPT_BEGIN | ||
|
||
### DGtal build | ||
cd "$BUILD_DIR" | ||
make -j $BJOBS | ||
|
||
$SCRIPT_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
$SCRIPT_BEGIN | ||
|
||
### Dec | ||
echo "Compile Dec in non parallel mode to save memory (to fix gcc internal compiler error(Killed))"; | ||
|
||
cd "$BUILD_DIR" | ||
make exampleDiscreteExteriorCalculusChladni | ||
#make exampleDiscreteExteriorCalculusSolve | ||
#make exampleDECSurface | ||
make examplePropagation | ||
make testDiscreteExteriorCalculusExtended | ||
|
||
$SCRIPT_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
$SCRIPT_BEGIN | ||
|
||
### DGtal build | ||
cd "$BUILD_DIR" | ||
make -j $BJOBS DGtal | ||
|
||
$SCRIPT_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
$SCRIPT_BEGIN | ||
|
||
### DGtal Doc | ||
cd "$BUILD_DIR" | ||
make doc > buildDoc.log | ||
|
||
$SCRIPT_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
$SCRIPT_BEGIN | ||
|
||
### DGtal Examples | ||
cd "$BUILD_DIR/examples" | ||
make -j $BJOBS | ||
|
||
$SCRIPT_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
$SCRIPT_BEGIN | ||
|
||
### DGtal Tests | ||
cd "$BUILD_DIR/tests" | ||
make -j $BJOBS | ||
|
||
$SCRIPT_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
$SCRIPT_BEGIN | ||
|
||
return_code=0 | ||
|
||
|
@@ -17,4 +18,6 @@ do | |
fi | ||
done | ||
|
||
$SCRIPT_END | ||
|
||
exit $return_code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
$SCRIPT_BEGIN | ||
|
||
### DGtal Tests | ||
cd "$BUILD_DIR/tests" | ||
|
||
if [ -f io/writers/testMagickWriter ]; then | ||
io/writers/testMagickWriter -s | ||
fi | ||
|
||
if [ -f io/readers/testMagickReader ]; then | ||
io/readers/testMagickReader | ||
fi | ||
|
||
ctest -j $BJOBS --output-on-failure | ||
|
||
$SCRIPT_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
$SCRIPT_BEGIN | ||
|
||
# Build directory | ||
cd "$BUILD_DIR" | ||
|
||
# Common build options | ||
export BTYPE="$BTYPE -DBUILD_TESTING=$BUILD_TESTS -DBUILD_EXAMPLES=$BUILD_EXAMPLES -DCMAKE_CXX_COMPILER=$CXXCOMPILER -DCMAKE_C_COMPILER=$CCOMPILER" | ||
|
||
# Cmake | ||
echo "Using C++ = $CXXCOMPILER" | ||
echo "CMake options = $BTYPE" | ||
cmake "$SRC_DIR" $BTYPE | ||
|
||
$SCRIPT_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
$SCRIPT_BEGIN | ||
|
||
if [[ "$BUILD_DEC" == "true" ]] | ||
then | ||
export BUILD_TESTS="true" | ||
export BUILD_EXAMPLES="true" | ||
fi | ||
|
||
if [[ "$BUILD_ALL" == "true" ]] | ||
then | ||
export BUILD_TESTS="true" | ||
export BUILD_EXAMPLES="true" | ||
export BUILD_DGTAL="true" | ||
fi | ||
|
||
if [[ "$BUILD_TESTS" == "true" ]] || [[ "$BUILD_EXAMPLES" == "true" ]] | ||
then | ||
export BUILD_DGTAL="true" | ||
fi | ||
|
||
if [[ "$UPLOAD_DOC" == "true" ]] | ||
then | ||
export BUILD_DOC="true" | ||
fi | ||
|
||
$SCRIPT_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
#!/bin/bash | ||
$SCRIPT_BEGIN | ||
|
||
## Get and test if DGtalTools compiles | ||
DGTALPATH=`pwd` | ||
DGTALPATH="$SRC_DIR" | ||
echo "DGtal path = $DGTALPATH" | ||
git clone --depth 1 git://github.com/DGtal-team/DGtalTools.git | ||
cd DGtalTools | ||
mkdir build ; cd build | ||
cmake .. -DDGtal_DIR=$DGTALPATH/build $BUILD | ||
make -j 2 | ||
cmake .. -DDGtal_DIR="$BUILD_DIR" $BUILD | ||
make -j $BJOBS | ||
|
||
$SCRIPT_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
#!/bin/bash | ||
$SCRIPT_BEGIN | ||
|
||
# | ||
##Download and install 1.8.1 | ||
# | ||
|
||
mkdir ~/doxygen && cd ~/doxygen | ||
wget http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.10.linux.bin.tar.gz && tar xzf doxygen-1.8.10.linux.bin.tar.gz | ||
|
||
$SCRIPT_END |
Oops, something went wrong.