-
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
435 changed files
with
8,716 additions
and
3,664 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,17 +27,17 @@ notifications: | |
env: | ||
- CONFIG="Debug,Magick,GMP,ITK" | ||
- CONFIG="Debug,Cairo,QGLviewer,HDF5" | ||
- CONFIG="Documentation,Debug,Cairo,GMP" | ||
- CONFIG="Documentation" | ||
- CONFIG="DGtalTools" | ||
|
||
matrix: | ||
fast_finish: true | ||
exclude: | ||
- os: osx | ||
env: CONFIG="Documentation,Debug,Cairo,GMP" | ||
env: CONFIG="Documentation" | ||
- compiler: gcc | ||
os: linux | ||
env: CONFIG="Documentation,Debug,Cairo,GMP" | ||
env: CONFIG="Documentation" | ||
- compiler: gcc | ||
env: CONFIG="DGtalTools" | ||
- os: osx | ||
|
@@ -70,15 +70,17 @@ addons: | |
|
||
before_install: | ||
- if [ $CXX == "g++" ]; then CCOMPILER="gcc-4.8"; CXXCOMPILER="g++-4.8"; fi | ||
- DOC="false" | ||
- BUILD_DOC="false" | ||
- UPLOAD_DOC="false" | ||
- NEEDCORE="true"; | ||
- NEEDEXAMPLESANDTESTS="true"; | ||
- if [ $CONFIG == "Documentation,Debug,Cairo,GMP" ]; then NEEDEXAMPLESANDTESTS="false"; NEEDCORE="false"; if [ $OriginalRepo == "true" ]; then if [ $TRAVIS_PULL_REQUEST == "false" ]; then DOC="true"; fi; fi; fi | ||
- if [ $CONFIG == "Documentation" ]; then NEEDEXAMPLESANDTESTS="false"; NEEDCORE="false"; BUILD_DOC="true"; if [ $OriginalRepo == "true" ]; then if [ $TRAVIS_PULL_REQUEST == "false" ]; then UPLOAD_DOC="true"; fi; fi; fi | ||
- if [ $CONFIG == "Debug,Magick,GMP,ITK" ]; then BTYPE="-DCMAKE_BUILD_TYPE=Debug -DWITH_MAGICK=true -DWITH_GMP=true -DBUILD_TESTING=ON -DWARNING_AS_ERROR=ON"; fi | ||
- if [ $CONFIG == "Debug,Cairo,QGLviewer,HDF5" ]; then BTYPE="-DCMAKE_BUILD_TYPE=Debug -DWITH_HDF5=true -DWITH_CAIRO=true -DWITH_QGLVIEWER=true -DBUILD_TESTING=ON -DWARNING_AS_ERROR=OFF"; fi | ||
- if [ $DOC == "true" ]; then .travis/install_doxygen.sh; BTYPE="-DDOXYGEN_EXECUTABLE=$HOME/doxygen/doxygen-1.8.10/bin/doxygen -DCMAKE_BUILD_TYPE=Debug -DWITH_CAIRO=true -DWITH_GMP=true"; DOC="true"; openssl aes-256-cbc -K $encrypted_47769ec71275_key -iv $encrypted_47769ec71275_iv -in .travis/dgtal_rsa.enc -out .travis/dgtal_rsa -d; chmod 600 .travis/dgtal_rsa; DOC="true"; fi | ||
- if [ $CONFIG == "DGtalTools" ]; then NEEDEXAMPLESANDTESTS="false"; BTYPE="-DCMAKE_BUILD_TYPE=Debug -DWITH_MAGICK=true -DWITH_GMP=true -DWITH_HDF5=true -DWITH_CAIRO=true -DWITH_QGLVIEWER=true -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=off"; fi | ||
- if [ $DOC == "true"]; then wget http://dgtal.org/doc/tags/DGtalTools-tagfile; fi | ||
- if [ $UPLOAD_DOC == "true" ]; then openssl aes-256-cbc -K $encrypted_47769ec71275_key -iv $encrypted_47769ec71275_iv -in .travis/dgtal_rsa.enc -out .travis/dgtal_rsa -d; chmod 600 .travis/dgtal_rsa; BUILD_DOC="true"; fi | ||
- if [ $BUILD_DOC == "true" ]; then wget http://dgtal.org/doc/tags/DGtalTools-tagfile; fi | ||
- if [ $BUILD_DOC == "true" ]; then .travis/install_doxygen.sh; BTYPE="-DDOXYGEN_EXECUTABLE=$HOME/doxygen/doxygen-1.8.10/bin/doxygen"; fi | ||
|
||
######## | ||
# Deps. | ||
|
@@ -93,23 +95,24 @@ before_script: | |
############ | ||
script: | ||
- cmake . $BTYPE -DCMAKE_CXX_COMPILER=$CXXCOMPILER -DCMAKE_C_COMPILER=$CCOMPILER | ||
- echo $DOC | ||
- echo $BUILD_DOC | ||
- echo $UPLOAD_DOC | ||
- echo $BTYPE | ||
- if [ $NEEDCORE == "true" ]; then make -j 3 DGtal && make -j 3 DGtalIO; fi | ||
- if [ $NEEDEXAMPLESANDTESTS == "true" ]; then cd examples && make -j 3 ; fi | ||
- if [ $NEEDEXAMPLESANDTESTS == "true" ]; then cd ../tests && make -j 3 && cd .. ; fi | ||
- if [ $NEEDEXAMPLESANDTESTS == "true" ]; then make test ARGS=--output-on-failure ; fi | ||
- if [ $CONFIG == "DGtalTools" ]; then pwd ; .travis/getAndCheckDGtalTools.sh ; fi | ||
|
||
- if [ $BUILD_DOC == "true" ]; then make doc; fi | ||
- if [ $CONFIG == "Documentation" ]; then ./.travis/checkDoxygenDocumentation.sh; fi | ||
|
||
|
||
########### | ||
## Building the documentation | ||
########### | ||
after_success: | ||
- if [ $DOC == "true" ]; then make doc; fi | ||
- if [ $DOC == "true" ]; then rsync -azv --delete --delete-after -e 'ssh -oStrictHostKeyChecking=no -i .travis/dgtal_rsa' html/ [email protected]:/home/dgtal/public_html/doc/nightly/; fi | ||
- if [ $DOC == "true" ]; then cd html; make ; wget http://dgtal.org/doc/docset/template.tgz ; tar zxvf template.tgz ; mv template/* org.dgtal.docset ; tar zcvf DGtal-devel.tgz org.dgtal.docset ; cd .. ;rsync -azv --delete --delete-after -e 'ssh -oStrictHostKeyChecking=no -i .travis/dgtal_rsa' html/DGtal-devel.tgz [email protected]:/home/dgtal/public_html/doc/docset ; fi | ||
- if [ $UPLOAD_DOC == "true" ]; then rsync -azv --delete --delete-after -e 'ssh -oStrictHostKeyChecking=no -i .travis/dgtal_rsa' html/ [email protected]:/home/dgtal/public_html/doc/nightly/; fi | ||
- if [ $UPLOAD_DOC == "true" ]; then cd html; make ; wget http://dgtal.org/doc/docset/template.tgz ; tar zxvf template.tgz ; mv template/* org.dgtal.docset ; tar zcvf DGtal-devel.tgz org.dgtal.docset ; cd .. ;rsync -azv --delete --delete-after -e 'ssh -oStrictHostKeyChecking=no -i .travis/dgtal_rsa' html/DGtal-devel.tgz [email protected]:/home/dgtal/public_html/doc/docset ; fi | ||
## We publish the DGtalTools tags | ||
- if [ $DOC == "true" ]; then scp -i .travis/dgtal_rsa DGtal-tagfile [email protected]:/home/dgtal/public_html/doc/tags/;scp -i .travis/dgtal_rsa Board-tagfile [email protected]:/home/dgtal/public_html/doc/tags/; fi | ||
- if [ $UPLOAD_DOC == "true" ]; then scp -i .travis/dgtal_rsa DGtal-tagfile [email protected]:/home/dgtal/public_html/doc/tags/;scp -i .travis/dgtal_rsa Board-tagfile [email protected]:/home/dgtal/public_html/doc/tags/; fi | ||
- echo "All done..." |
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,36 @@ | ||
#!/bin/bash | ||
|
||
return_code=0 | ||
return_code2=0 | ||
return_code3=0 | ||
HOMEPATH=$PWD | ||
|
||
|
||
## We first check that the doxygen.log is empty | ||
if [[ -s doxygen.log ]] | ||
then | ||
return_code=1 | ||
echo "Doxygen log file not empty !" | ||
echo "=====================================" | ||
cat doxygen.log | ||
echo "=====================================" | ||
else | ||
return_code=0 | ||
fi | ||
|
||
## We check src code consitency | ||
cd src/ | ||
$HOMEPATH/.travis/check_src_file_tag.sh | ||
if [[ $? -ne 0 ]] | ||
then | ||
return_code2=1; | ||
fi | ||
cd .. | ||
|
||
## We check examples consistency | ||
# | ||
# TODO | ||
# | ||
|
||
return_code=$((return_code + return_code2 + return_code3)) | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
return_code=0 | ||
|
||
# Checking that examples has proper @file tag | ||
for file in `find * -type f \( -name \*.c -o -name \*.cpp -o -name \*.cxx -o -name \*.h -o -name \*.hpp -o -name \*.hxx \)` | ||
do | ||
expected_name=$file | ||
if ! $(grep -aqE "^\s*(\**|//[/!]|/\*[\*!])\s*?[@\\\\]example(\s+${expected_name})?\s*$" $file) | ||
then | ||
echo -E "Error in file $file:" | ||
echo -E " expecting \" * @example ${expected_name}\"" | ||
echo -E " but found \"$(grep -m 1 -aP '[@\\](example|file)' $file)\"" | ||
echo | ||
|
||
return_code=1 | ||
fi | ||
done | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
return_code=0 | ||
|
||
# Checking that source code has proper @file tag | ||
for file in `find * -type f \( -name \*.cpp -o -name \*.h -o -name \*.ih \)` | ||
do | ||
expected_name=$(basename $file) | ||
if ! $(grep -aqE "^\s*(\**|//[/!]|/\*[\*!])\s*?[@\\\\]file(\s+${expected_name})?\s*$" $file) | ||
then | ||
echo -E "Error in file $file:" | ||
echo -E " expecting \" * @file ${expected_name}\"" | ||
echo -E " or simply \" * @file\"" | ||
echo -E " but found \"$(grep -m 1 -aP '[@\\]file' $file)\"" | ||
echo | ||
|
||
return_code=1 | ||
fi | ||
done | ||
|
||
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
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
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,5 +1,5 @@ | ||
/** | ||
* @file approximation.cpp | ||
* @file arithmetic/approximation.cpp | ||
* @ingroup Examples | ||
* @author Jacques-Olivier Lachaud (\c [email protected] ) | ||
* Laboratory of Mathematics (CNRS, UMR 5127), University of Savoie, France | ||
|
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,5 +1,5 @@ | ||
/** | ||
* @file convergents-biginteger.cpp | ||
* @file arithmetic/convergents-biginteger.cpp | ||
* @ingroup Examples | ||
* @author Jacques-Olivier Lachaud (\c [email protected] ) | ||
* Laboratory of Mathematics (CNRS, UMR 5127), University of Savoie, France | ||
|
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,5 +1,5 @@ | ||
/** | ||
* @file convergents.cpp | ||
* @file arithmetic/convergents.cpp | ||
* @ingroup Examples | ||
* @author Jacques-Olivier Lachaud (\c [email protected] ) | ||
* Laboratory of Mathematics (CNRS, UMR 5127), University of Savoie, France | ||
|
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,5 +1,5 @@ | ||
/** | ||
* @file extended-euclid.cpp | ||
* @file arithmetic/extended-euclid.cpp | ||
* @ingroup Examples | ||
* @author Jacques-Olivier Lachaud (\c [email protected] ) | ||
* Laboratory of Mathematics (CNRS, UMR 5127), University of Savoie, France | ||
|
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,5 +1,5 @@ | ||
/** | ||
* @file fraction.cpp | ||
* @file arithmetic/fraction.cpp | ||
* @ingroup Examples | ||
* @author Jacques-Olivier Lachaud (\c [email protected] ) | ||
* Laboratory of Mathematics (CNRS, UMR 5127), University of Savoie, France | ||
|
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,5 +1,5 @@ | ||
/** | ||
* @file lower-integer-convex-hull.cpp | ||
* @file arithmetic/lower-integer-convex-hull.cpp | ||
* @ingroup Examples | ||
* @author Jacques-Olivier Lachaud (\c [email protected] ) | ||
* Laboratory of Mathematics (CNRS, UMR 5127), University of Savoie, France | ||
|
Oops, something went wrong.