mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
reduce the number of jobs on travis (#172)
* reduce the number of jobs on travis * update usage of pip due to changes in Homebrew * update pip and ensure the right one is being used with an alias * force reinstall pip to get `pip` on PATH * use python2 explicitly to run catkin_make * force use of python2 executable by catkin packages * python! * simpler * how to which * Update .travis.yml * make tests and run_tests * test results * disable timer tests on macOS
This commit is contained in:
parent
bdba3a80ad
commit
5a354eaab7
@ -2,11 +2,9 @@ os:
|
|||||||
- linux
|
- linux
|
||||||
- osx
|
- osx
|
||||||
language: cpp
|
language: cpp
|
||||||
compiler:
|
|
||||||
- gcc
|
|
||||||
- clang
|
|
||||||
install:
|
install:
|
||||||
- make install_deps
|
- make install_deps
|
||||||
- source setup.bash
|
- source setup.bash
|
||||||
script:
|
script:
|
||||||
- make && make test
|
- mkdir build && cd build && cmake .. -DPYTHON_EXECUTABLE=$(which python2) && make && make tests && make run_tests
|
||||||
|
- catkin_test_results .
|
||||||
|
|||||||
9
Makefile
9
Makefile
@ -8,14 +8,17 @@ ifeq ($(UNAME),Darwin)
|
|||||||
brew tap ros/deps
|
brew tap ros/deps
|
||||||
brew update
|
brew update
|
||||||
brew outdated boost || brew upgrade boost || brew install boost
|
brew outdated boost || brew upgrade boost || brew install boost
|
||||||
sudo pip install rosinstall_generator wstool rosdep empy catkin_pkg
|
brew outdated python || brew upgrade python || brew install python
|
||||||
sudo rosdep init
|
sudo -H python2 -m pip install -U pip setuptools
|
||||||
|
sudo -H python2 -m pip install --force-reinstall --no-deps -U pip
|
||||||
|
sudo -H python2 -m pip install rosinstall_generator wstool rosdep empy catkin_pkg
|
||||||
|
sudo -H rosdep init
|
||||||
rosdep update
|
rosdep update
|
||||||
mkdir catkin_ws
|
mkdir catkin_ws
|
||||||
cd catkin_ws && rosinstall_generator catkin --rosdistro hydro --tar > catkin.rosinstall
|
cd catkin_ws && rosinstall_generator catkin --rosdistro hydro --tar > catkin.rosinstall
|
||||||
cd catkin_ws && wstool init src catkin.rosinstall
|
cd catkin_ws && wstool init src catkin.rosinstall
|
||||||
cd catkin_ws && rosdep install --from-paths src --ignore-src -y
|
cd catkin_ws && rosdep install --from-paths src --ignore-src -y
|
||||||
cd catkin_ws && ./src/catkin/bin/catkin_make install
|
cd catkin_ws && python2 ./src/catkin/bin/catkin_make -DPYTHON_EXECUTABLE=`which python2` install
|
||||||
echo "source catkin_ws/install/setup.bash" > setup.bash
|
echo "source catkin_ws/install/setup.bash" > setup.bash
|
||||||
else
|
else
|
||||||
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list'
|
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list'
|
||||||
|
|||||||
@ -5,6 +5,8 @@ if(UNIX)
|
|||||||
target_link_libraries(${PROJECT_NAME}-test util)
|
target_link_libraries(${PROJECT_NAME}-test util)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT APPLE) # these tests are unreliable on macOS
|
||||||
catkin_add_gtest(${PROJECT_NAME}-test-timer unit/unix_timer_tests.cc)
|
catkin_add_gtest(${PROJECT_NAME}-test-timer unit/unix_timer_tests.cc)
|
||||||
target_link_libraries(${PROJECT_NAME}-test-timer ${PROJECT_NAME})
|
target_link_libraries(${PROJECT_NAME}-test-timer ${PROJECT_NAME})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user