From cb43731601d03f480bbfd46f9ba2b25b52551ddf Mon Sep 17 00:00:00 2001 From: Ruixiang Du Date: Fri, 21 Aug 2020 10:04:35 +0000 Subject: [PATCH] Add .gitlab-ci.yml --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..6ed56f4 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +image: rduweston/ubuntu-ci:melodic-bionic + +build: + stage: build + before_script: + - apt update && apt -y install libasio-dev ros-$ROS_DISTRO-teleop-twist-keyboard + script: + - mkdir -p /catkin_ws/src && cd /catkin_ws/src && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_init_workspace" + - cd /catkin_ws/src && cp -r $CI_BUILDS_DIR . + - cd /catkin_ws && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_make" +# artifacts: +# paths: +# - build/bin + # depending on your build setup it's most likely a good idea to cache outputs to reduce the build time + # cache: + # paths: + # - "*.o" + +# run tests using the binary built before +# test: +# stage: test +# script: +# - ./build/bin/gtest_all +# dependencies: +# - build