-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing documentation checks and updating Travis build #1335
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
17c34f8
Fix doxygen.log path
rolanddenis 7ad2773
Temporaly disabling build to speed up tests for the current PR
rolanddenis 86689fc
Refactoring travis config
rolanddenis ea5c178
Fixing Travis and missing build script
rolanddenis db39ccc
More fix
rolanddenis 1d7c398
Travis configure fix
rolanddenis 3acb5ad
Fixing travis again
rolanddenis 6484174
Fixing DGtalTools tagfile download location
rolanddenis 516dfcb
Creating build dir earlier in the Travis process
rolanddenis 3b8f170
Fixing path in Eigen installing for Travis
rolanddenis 5cb905b
Fixing doxygen warnings
rolanddenis 41a0c69
Try to find the bug with install_eigen under MacOs
rolanddenis eb92f93
Reducing concurrent job while building in Travis
rolanddenis 9dd4fe0
Uniform begin and end of the scripts used in Travis
rolanddenis b7b2019
Disabling -e option for brew install
rolanddenis 046b565
Codacy suggestion
rolanddenis 4a7b356
Removing old Travis script
rolanddenis 61a32dc
Disabling verbose mode of Travis
rolanddenis fbbae93
Matching checked extensions with Doxygen configuration
rolanddenis 4dc672c
Updating ChangeLog.md
rolanddenis 2824acf
Fixing online documentation publication
rolanddenis 5d8b0c7
Adding shebang in getAndCheckDGtalTools script
rolanddenis 9e17147
Fixing single/double quotes in public_doc.sh
rolanddenis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why these one have been commented ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a copy-paste from
.travis/main_build.sh
:DGtal/.travis/main_build.sh
Line 16 in 8f3ca8c
and it has been commented in 163a835 from #1306 but I don't know why (@kerautret ?).
I will try to uncomment these lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was to try to avoid the segfault or timeout issue of travis due to gcc problem (as discussed with Jaco in last meeting). Changing the moment where it was compiled fixed the memory issue (I suppose), but perhaps we have to remove this example from the travis test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, these two examples are already built during the main build. This part is only for examples that need to be build alone in order to avoid compiler failures. I think we can remove these two lines ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oups, didn't see your answer 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes of course if they are in the main part, but it was commented because it was an alternative.
But this part is not robust in all cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering ;)