forked from gazebosim/gz-physics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
60 lines (59 loc) · 2.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
image: ubuntu:bionic
pipelines:
default:
- step:
script:
- apt-get update
- apt-get -y install cmake build-essential curl git cppcheck software-properties-common g++-8 ruby-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
# lcov was broken briefly (see https://github.com/linux-test-project/lcov/issues/55 )
# checkout an explicit commit to avoid future regressions
- git checkout 04335632c371b5066e722298c9f8c6f11b210201
- make install
- cd ..
# Ignition dependencies
- echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable bionic main" > /etc/apt/sources.list.d/gazebo-stable.list
- echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-prerelease bionic main" > /etc/apt/sources.list.d/gazebo-prerelease.list
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D2486D2DD83DB69272AFE98867170598AF249743
- apt-get update
- apt-get -y install
libignition-cmake2-dev
libignition-common3-dev
libignition-math6-dev
libignition-math6-eigen3-dev
libignition-plugin-dev
libeigen3-dev
dart6-data
libdart6-collision-ode-dev
libdart6-dev
libdart6-utils-urdf-dev
libbenchmark-dev
libsdformat9-dev
# libsdformat (uncomment if a specific branch is needed)
#- apt install -y
# libtinyxml-dev
#- git clone http://github.com/osrf/sdformat -b spec2_prototype_9
#- cd sdformat
#- mkdir build
#- cd build
#- cmake ..
#- make -j4 install
#- cd ../..
# Ignition physics
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=coverage
- make
- export CTEST_OUTPUT_ON_FAILURE=1
- 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 -X gcov
- make codecheck
- make install