1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 19:54:57 +08:00

trying different travis osx settings

This commit is contained in:
William Woodall 2014-12-29 11:23:06 -08:00
parent a622105543
commit bd0980b69a
2 changed files with 26 additions and 27 deletions

View File

@ -1,36 +1,12 @@
os: os:
- linux - linux
- osx
language: cpp language: cpp
compiler: compiler:
- gcc - gcc
- clang - clang
install: install:
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list' - make install_deps
- wget http://packages.ros.org/ros.key -O - | sudo apt-key add - - source setup.bash
- sudo apt-get update
- sudo apt-get install ros-hydro-catkin libboost-dev
- source /opt/ros/hydro/setup.bash
script:
- make && make test
---
os:
- osx
language: cpp
before_install:
- brew update
- brew outdated boost || brew install boost
- sudo pip install rosinstall_generator wstool rosdep
- sudo rosdep init
- rosdep update
- mkdir catkin_ws
- cd catkin_ws
- rosinstall_generator catkin --rosdistro hydro --tar > catkin.rosinstall
- wstool init src catkin.rosinstall
- rosdep install --from-paths src --ignore-src -y
- ./src/catkin/bin/catkin_make install
- cd -
- source catkin_ws/install/setup.bash
script: script:
- make && make test - make && make test

View File

@ -1,6 +1,29 @@
all: serial all: serial
CMAKE_FLAGS := -DCMAKE_INSTALL_PREFIX=/tmp/usr/local CMAKE_FLAGS := -DCMAKE_INSTALL_PREFIX=/tmp/usr/local
UNAME := $(shell uname -s)
install_deps:
ifeq ($(UNAME),Darwin)
brew tap ros/deps
brew update
brew outdated boost || brew upgrade boost || brew install boost
sudo pip install rosinstall_generator wstool rosdep
sudo rosdep init
rosdep update
mkdir catkin_ws
cd catkin_ws && rosinstall_generator catkin --rosdistro hydro --tar > catkin.rosinstall
cd catkin_ws && wstool init src catkin.rosinstall
cd catkin_ws && rosdep install --from-paths src --ignore-src -y
cd catkin_ws && ./src/catkin/bin/catkin_make install
echo "source catkin_ws/install/setup.bash" > setup.bash
else
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list'
wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install ros-hydro-catkin libboost-dev
echo "source /opt/ros/hydro/setup.bash" > setup.bash
endif
install: install:
cd build && make install cd build && make install