forked from gazebosim/gz-sensors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
89 lines (88 loc) · 3.47 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
image: ubuntu:bionic
pipelines:
default:
- step:
script: # Modify the commands below to build your repository.
- apt update
- apt -y install wget lsb-release gnupg
- sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
- wget http://packages.osrfoundation.org/gazebo.key -O - | apt-key add -
- apt-get update
- apt-get -y install
cmake pkg-config cppcheck doxygen ruby-ronn curl git g++-8
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8 --slave /usr/bin/gcov gcov /usr/bin/gcov-8
# lcov
- git clone https://github.com/linux-test-project/lcov.git -b v1.14
- cd lcov
- make install
- cd ..
# Dependency: Ignition packages and sdformat
- apt-get -y install
libignition-cmake2-dev
libignition-common3-dev
libignition-math6-dev
libignition-msgs5-dev
libignition-tools-dev
libignition-plugin-dev
libignition-transport8-dev
libsdformat9-dev
# libignition-rendering3-dev
# # SDFormat (uncomment if a specific branch is needed)
# - apt install -y
# libxml2-utils
# libtinyxml-dev
# - git clone http://github.com/osrf/sdformat -b master
# - cd sdformat
# - mkdir build
# - cd build
# - cmake .. -DBUILD_TESTING=false
# - make -j4 install
# - cd ../..
# # Ignition msgs (uncomment if a specific branch is needed)
# - apt install -y
# libprotobuf-dev protobuf-compiler libprotoc-dev
# - git clone http://github.com/ignitionrobotics/ign-msgs -b master
# - cd ign-msgs
# - mkdir build
# - cd build
# - cmake ..
# - make -j4 install
# - cd ../..
# # Ignition transport (uncomment if a specific branch is needed)
# - apt install -y
# libzmq3-dev uuid-dev libsqlite3-dev
# - git clone http://github.com/ignitionrobotics/ign-transport -b master
# - cd ign-transport
# - mkdir build
# - cd build
# - cmake ..
# - make -j4 install
# - cd ../..
# Install ign-rendering dependencies
- apt-get -y install
libogre-1.9-dev libogre-2.1-dev libglew-dev libfreeimage-dev freeglut3-dev libxmu-dev libxi-dev uuid-dev
- git clone http://github.com/ignitionrobotics/ign-rendering -b master
- cd ign-rendering
- mkdir build
- cd build
- cmake ..
- make -j4 install
- cd ../..
# Ignition sensors
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=coverage -DDRI_TESTS=FALSE
- make -j4 install
- make test
- make coverage
# Use a special version of codecov for handling gcc8 output.
- bash <(curl -s https://raw.githubusercontent.com/codecov/codecov-bash/4678d212cce2078bbaaf5027af0c0dafaad6a095/codecov) -X gcovout
- make codecheck
# Examples
- apt-get -y install libfreeimage-dev
- cd ..
- cd examples/save_image
- mkdir build
- cd build
- cmake ..
- make