Commit 5e5328d3 authored by Tim Übelhör's avatar Tim Übelhör

Merge branch 'gitlab-ci' into 'master'

Gitlab ci

See merge request !1
parents 6312c2a2 cf895d7c
Pipeline #201246 passed with stage
in 4 minutes and 1 second
image: ros:melodic-ros-core
cache:
paths:
- ccache/
variables:
USE_ROSDEP: "false" # need manual order to pull my own git
before_script:
- git clone https://gitlab.com/VictorLamoine/ros_gitlab_ci.git
- source ros_gitlab_ci/gitlab-ci.bash >/dev/null catkin
# before ros_gitlab_ci so rosdep finds it
- git clone https://github.com/Tuebel/gl3w_ros.git ${CI_PROJECT_DIR}/catkin_workspace/src/gl3w_ros
- echo "Using rosdep to install dependencies"
# use rosdep for dependencies
- apt-get install -qq python-rosdep python-pip
- rosdep init || true
- rosdep update
- rosdep install --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} -y --as-root apt:false
catkin_tools:
stage: build
script:
- catkin build --summarize --no-status --force-color
......@@ -33,3 +33,6 @@ If you want to learn more about the OpenGL implementation, please visit Joey de
Vries website https://learnopengl.com/ and his twitter page
https://twitter.com/JoeyDeVriez. Thanks to his awesome resources I managed to
write this library in a bit more than a week.
# CI
A gitlab CI pipeline is implemented, which is based on [ros_gitlab_ci](https://gitlab.com/VictorLamoine/ros_gitlab_ci). The CI is based on the ros:melodic-ros-core docker image and will install the dependencies via rosdep. The gitlab-runner must use a docker executor.
\ No newline at end of file
project(PackageTest)
cmake_minimum_required(VERSION 2.8.12)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
add_executable(example example.cpp)
target_link_libraries(example ${CONAN_LIBS})
from conans import ConanFile, CMake
import os
class Gl3wTestConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
options = {"shared": [True, False], "fPIC": [True, False]}
default_options = "shared=False", "fPIC=True"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def imports(self):
self.copy("*.dll", dst="bin", src="bin")
self.copy("*.dylib*", dst="bin", src="lib")
def test(self):
os.chdir("bin")
self.run(".%sexample" % os.sep)
#include <cstdlib>
#include <scigl_render/gl_context.hpp>
int main(int argc, char **argv)
{
scigl_render::GLContext gl_context(true, false, 640, 480);
return EXIT_SUCCESS;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment