Skip to content

Commit

Permalink
Merge pull request #74 from scpeters/travis
Browse files Browse the repository at this point in the history
Update travis CI scripts
  • Loading branch information
scpeters committed Jan 31, 2016
2 parents 9fc4f61 + 0bb4c84 commit ac3b460
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
language: cpp
sudo: required
dist: trusty
# Force travis to use its minimal image with default Python settings
language: generic
compiler:
- clang
- gcc
script: "./.travis/build"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq libboost-system-dev libboost-thread-dev libtinyxml-dev
- sudo apt-get install -qq libboost-system-dev libboost-thread-dev libboost-test-dev libtinyxml-dev python-yaml
matrix:
allow_failures:
- compiler: clang
22 changes: 8 additions & 14 deletions .travis/build
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,36 @@ set -ev
# Directories.
root_dir=`pwd`
build_dir="$root_dir/_travis/build"
install_dir="$root_dir/_travis/install"
console_bridge_dir="$build_dir/console_bridge"
urdfdom_headers_dir="$build_dir/urdfdom_headers"

# Shortcuts.
git_clone="git clone --quiet --recursive"

# Create layout.
rm -rf "$build_dir" "$install_dir"
rm -rf "$build_dir"
mkdir -p "$build_dir"
mkdir -p "$install_dir"

# Setup environment variables.
export LD_LIBRARY_PATH="$install_dir/lib:$LD_LIBRARY_PATH"
export PKG_CONFIG_PATH="$install_dir/lib/pkgconfig:$PKG_CONFIG_PATH"

# Retrieve console_bridge
echo "--> Compiling console_bridge"
cd "$build_dir"
$git_clone "git://github.com/ros/console_bridge.git"
cd "$console_bridge_dir"
cmake . -DCMAKE_INSTALL_PREFIX:STRING="$install_dir"
make install
cmake .
sudo make install

# Retrieve urdfdom_headers
echo "--> Compiling urdfdom_headers"
cd "$build_dir"
$git_clone "git://github.com/ros/urdfdom_headers.git"
cd "$urdfdom_headers_dir"
cmake . -DCMAKE_INSTALL_PREFIX:STRING="$install_dir"
make install
cmake .
sudo make install

# Compile
echo "--> Compiling urdfdom"
cd "$root_dir"
cmake . -DCMAKE_INSTALL_PREFIX:STRING="$install_dir"
cmake .
make
#make check
make install
make test ARGS="-VV"
sudo make install

0 comments on commit ac3b460

Please sign in to comment.