forked from gazebosim/sdformat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
47 lines (46 loc) · 1.69 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
image: ubuntu:bionic
pipelines:
default:
- step:
script:
# Dependencies
- 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 -y install cmake build-essential curl git libtinyxml2-dev libxml2-utils ruby-dev python-psutil cppcheck
- gcc -v
- g++ -v
- gcov -v
# lcov
- git clone https://github.com/linux-test-project/lcov.git -b v1.14
- cd lcov
- make install
- cd ..
# Static checking before building - fail fast
- sh tools/code_check.sh
# Dependency: Ignition packages
- apt-get -y install
libignition-cmake2-dev libignition-tools-dev libignition-math6-dev
liburdfdom-dev
# SDFormat
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=coverage
- make sdf_descriptions
- make -j4
- 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 install
# Examples
- cd ..
- cd examples
- mkdir build
- cd build
- cmake ..
- make -j4
- ./simple ../simple.sdf