Skip to content
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

Travis-CI build test on OSX #313

Merged
merged 16 commits into from
Jan 23, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 20 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
language: cpp
os:
- linux
- osx
compiler:
- gcc
- clang
before_install:
- 'ci/before_install.sh'
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then 'ci/before_install_linux.sh' ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then 'ci/before_install_osx.sh' ; fi
env:
global:
matrix:
- BUILD_CORE_ONLY=OFF BUILD_TYPE=Debug
- BUILD_CORE_ONLY=OFF BUILD_TYPE=Release
- BUILD_CORE_ONLY=ON BUILD_TYPE=Debug
- BUILD_CORE_ONLY=ON BUILD_TYPE=Release
before_script: cmake -DBUILD_CORE_ONLY=$BUILD_CORE_ONLY -DCMAKE_BUILD_TYPE=$BUILD_TYPE .
- BUILD_CORE_ONLY=OFF BUILD_TYPE=Debug
- BUILD_CORE_ONLY=OFF BUILD_TYPE=Release
- BUILD_CORE_ONLY=ON BUILD_TYPE=Debug
- BUILD_CORE_ONLY=ON BUILD_TYPE=Release
matrix:
exclude:
- os: osx
compiler: gcc
before_script:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cmake -DBUILD_CORE_ONLY=$BUILD_CORE_ONLY -DCMAKE_BUILD_TYPE=$BUILD_TYPE .; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then cmake -DBUILD_CORE_ONLY=$BUILD_CORE_ONLY -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DDART_BUILD_UNITTESTS=OFF .; fi
script:
- make
- sudo ldconfig --verbose # So the test executeables can detect libtinyxml2
- if [ $BUILD_CORE_ONLY = OFF ]; then make test; fi
# - cd tools/
# - ./code_check.sh
# - ./abi_check.sh 4.1.0 # Check with DART 4.1.0
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then 'ci/script_linux.sh' ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then 'ci/script_osx.sh' ; fi
after_failure:
- cat Testing/Temporary/LastTest.log
- cat Testing/Temporary/LastTestsFailed.log
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then 'ci/after_failure_linux.sh' ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then 'ci/after_failure_osx.sh' ; fi
2 changes: 2 additions & 0 deletions ci/after_failure_linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cat Testing/Temporary/LastTest.log
cat Testing/Temporary/LastTestsFailed.log
Empty file added ci/after_failure_osx.sh
Empty file.
File renamed without changes.
19 changes: 19 additions & 0 deletions ci/before_install_osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
brew tap dartsim/dart
brew tap homebrew/science

brew install git
# brew install cmake # installed cmake-3.0.2
brew install assimp
brew install fcl
brew install flann # 1.8.14
# brew install boost # installed boost-1.55.2
brew install eigen # 3.2.2
brew install tinyxml # 2.6.2
brew install tinyxml2 # 2.2.0
brew install libccd #
brew install nlopt # 2.4.2
brew install ros/deps/urdfdom
brew install ros/deps/urdfdom_headers
brew install ros/deps/console_bridge
brew install ros/deps/gtest

6 changes: 6 additions & 0 deletions ci/script_linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
make
sudo ldconfig --verbose # So the test executeables can detect libtinyxml2
if [ $BUILD_CORE_ONLY = OFF ]; then make test; fi
# cd tools/
# ./code_check.sh
# ./abi_check.sh 4.1.0 # Check with DART 4.1.0
5 changes: 5 additions & 0 deletions ci/script_osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
make
# if [ $BUILD_CORE_ONLY = OFF ]; then make test; fi # Disabled until gtest issue is resolved
# cd tools/
# ./code_check.sh
# ./abi_check.sh 4.1.0 # Check with DART 4.1.0