-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
50 lines (49 loc) · 2.3 KB
/
bitbucket-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
image: ubuntu:bionic
pipelines:
default:
- step:
script:
# tzdata wants us to select the geographic area in which we live.
- apt-get update
- export DEBIAN_FRONTEND=noninteractive
- apt-get install -y tzdata
- ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime
- dpkg-reconfigure --frontend noninteractive tzdata
# Install dependencies
- echo "deb [trusted=yes] http://packages.ros.org/ros/ubuntu bionic main" > /etc/apt/sources.list.d/ros.list
- echo "deb [trusted=yes] http://packages.ros.org/ros-testing/ubuntu bionic main" > /etc/apt/sources.list.d/ros-latest.list
- echo "deb [trusted=yes] http://packages.osrfoundation.org/gazebo/ubuntu-stable bionic main" > /etc/apt/sources.list.d/gazebo-stable.list
- echo "deb [trusted=yes] http://packages.osrfoundation.org/gazebo/ubuntu-prerelease bionic main" > /etc/apt/sources.list.d/gazebo-prerelease.list
- apt-get update
- apt-get -y install build-essential cmake libusb-dev lsb-release mercurial pkg-config python ignition-blueprint python-rosdep cppcheck
- apt-get -y install
ros-melodic-ros-ign-bridge
ros-melodic-ros-ign-image
- rosdep init
- rosdep update
- rosdep install --from-paths ./ -i -y --rosdistro melodic
--skip-keys=ignition-common3
--skip-keys=ignition-gazebo3
--skip-keys=ignition-launch2
--skip-keys=ignition-math6
--skip-keys=ignition-msgs5
--skip-keys=ignition-plugin1
--skip-keys=ignition-rendering3
--skip-keys=ignition-sensors3
--skip-keys=ignition-transport8
--skip-keys=ros_ign_bridge
--skip-keys=ros_ign_image
# SubT
- mkdir -p /tmp/subt_ws/src
- ln -s `pwd` /tmp/subt_ws/src
# Static checker first.
- cd subt_ign
- touch /tmp/cpp_check.suppress
- sh tools/code_check.sh
- cd /tmp/subt_ws
# Build and run tests.
- source /opt/ros/melodic/setup.bash
- catkin_make
- catkin_make run_tests -j1
- catkin_test_results --all --verbose || true
- catkin_test_results