-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbitbucket-pipelines.yml
148 lines (147 loc) · 5.62 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
image: ubuntu:bionic
pipelines:
default:
- step:
script:
- apt-get 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'
- sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-prerelease `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-prerelease.list'
- wget http://packages.osrfoundation.org/gazebo.key -O - | apt-key add -
- apt-get update
- apt-get -y install
cmake build-essential curl git mercurial cppcheck g++-8 libyaml-dev
libwebsockets-dev
doxygen ruby-ronn libtinyxml2-dev software-properties-common
clang-tidy-6.0 libclang-6.0-dev python-yaml libgflags-dev binutils-dev
- 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
- gcc -v
- g++ -v
- gcov -v
# lcov
- git clone https://github.com/linux-test-project/lcov.git
- cd lcov
- make install
- cd ..
# Dependency: Ignition packages
- apt-get -y install
libignition-cmake2-dev
libignition-common3-dev
libignition-fuel-tools5-dev
libignition-math6-dev
libignition-math6-eigen3-dev
libignition-msgs6-dev
libignition-physics3-dev
libignition-plugin-dev
libignition-tools-dev
libignition-transport9-dev
libsdformat10-dev
# libignition-gazebo4-dev
# libignition-gui4-dev
# libignition-rendering4-dev
# libignition-sensors4-dev
# # 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
# - 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
# - cd ign-transport
# - mkdir build
# - cd build
# - cmake .. -DBUILD_TESTING=false
# - make -j4 install
# - cd ../..
# # SDFormat from source
# - apt install -y
# libxml2-utils
# libtinyxml-dev
# - git clone http://github.com/osrf/sdformat
# - cd sdformat
# - mkdir build
# - cd build
# - cmake .. -DBUILD_TESTING=false
# - make -j4 install
# - cd ../..
# Ignition Rendering from source
- apt install -y
libogre-1.9-dev libogre-2.1-dev libglew-dev libfreeimage-dev freeglut3-dev libxmu-dev libxi-dev uuid-dev xvfb
- git clone https://github.com/ignitionrobotics/ign-rendering -b master
- cd ign-rendering
- mkdir build
- cd build
- cmake .. -DBUILD_TESTING=false
- make install
- cd ../..
# Ignition GUI from source
- apt install -y
qtbase5-dev libtinyxml2-dev
libprotoc-dev
libprotobuf-dev
qtdeclarative5-dev
qtquickcontrols2-5-dev
qml-module-qtquick2
qml-module-qtquick-controls
qml-module-qtquick-controls2
qml-module-qtquick-dialogs
qml-module-qtquick-layouts
qml-module-qt-labs-folderlistmodel
qml-module-qt-labs-settings
qml-module-qtgraphicaleffects
- git clone https://github.com/ignitionrobotics/ign-gui -b master
- cd ign-gui
- mkdir build
- cd build
- cmake .. -DBUILD_TESTING=false
- make install
- cd ../..
# # Ignition Physics from source
# - apt install -y
# dart6-data
# libdart6-collision-ode-dev
# libdart6-dev
# libdart6-utils-urdf-dev
# libbenchmark-dev
# - git clone https://github.com/ignitionrobotics/ign-physics -b master
# - cd ign-physics
# - mkdir build
# - cd build
# - cmake .. -DBUILD_TESTING=false
# - make install
# - cd ../..
# Ignition Sensors from source
- git clone https://github.com/ignitionrobotics/ign-sensors
- cd ign-sensors
- mkdir build
- cd build
- cmake .. -DBUILD_TESTING=false
- make install
- cd ../..
# Ignition Gazebo from source
- git clone https://github.com/ignitionrobotics/ign-gazebo
- cd ign-gazebo
- mkdir build
- cd build
- cmake .. -DBUILD_TESTING=false
- make install
- cd ../..
# Ignition Launch
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=coverage
- make -j4
- make test ARGS="-VV"
# - 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 -X gcov
# - make codecheck
- cd ..
- ./tools/clang_tidy.sh