forked from gazebosim/gz-rendering
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
57 lines (55 loc) · 2.22 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
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 libogre-1.9-dev libogre-2.1-dev libglew-dev libfreeimage-dev doxygen ruby-ronn freeglut3-dev libxmu-dev libxi-dev curl git g++-8 uuid-dev xvfb
- 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
# Dependency: Ignition packages
- apt-get -y install
libignition-cmake2-dev
libignition-math6-dev
libignition-plugin-dev
# libignition-common4-dev
# Ignition common (uncomment if a specific branch is needed)
- apt-get -y install
libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev
libfreeimage-dev libgts-dev libswscale-dev libtinyxml2-dev
- git clone http://github.com/ignitionrobotics/ign-common -b main
- cd ign-common
- mkdir build
- cd build
- cmake ..
- make -j4 install
- cd ../..
# lcov
- git clone https://github.com/linux-test-project/lcov.git
- cd lcov
- make install
- cd ..
# Ignition rendering
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=coverage
- make -j4
- make install
- make codecheck
# Run tests
# - Xvfb :1 -screen 0 1280x1024x24 &
# - DISPLAY=:1.0 make test
# - DISPLAY=:1.0 RENDER_ENGINE_VALUES=ogre2 MESA_GL_VERSION_OVERRIDE=3.3 make test
# Build an example
- cd ../examples/simple_demo
- mkdir build
- cd build
- cmake ..
- make -j4