Skip to content
Snippets Groups Projects
Commit 3a0ebd41 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

fixing CI and c++14

parent ac4d2bfb
No related branches found
No related tags found
2 merge requests!3After cmake and const refactor,!1new release
...@@ -28,6 +28,10 @@ stages: ...@@ -28,6 +28,10 @@ stages:
# create ci_deps folder (if not exists) # create ci_deps folder (if not exists)
- mkdir -pv ci_deps - mkdir -pv ci_deps
# manually source ros setup.bash
- source /root/catkin_ws/devel/setup.bash
- roscd # check that it works
.license_header_template: &license_header_definition .license_header_template: &license_header_definition
- cd $CI_PROJECT_DIR - cd $CI_PROJECT_DIR
...@@ -67,6 +71,7 @@ stages: ...@@ -67,6 +71,7 @@ stages:
- if [ -d wolf ]; then - if [ -d wolf ]; then
- echo "directory wolf exists" - echo "directory wolf exists"
- cd wolf - cd wolf
- git checkout devel
- git pull - git pull
- git checkout $WOLF_CORE_BRANCH - git checkout $WOLF_CORE_BRANCH
- else - else
...@@ -104,6 +109,7 @@ stages: ...@@ -104,6 +109,7 @@ stages:
- if [ -d gnss ]; then - if [ -d gnss ]; then
- echo "directory gnss exists" - echo "directory gnss exists"
- cd gnss - cd gnss
- git checkout devel
- git pull - git pull
- git checkout $WOLF_GNSS_BRANCH - git checkout $WOLF_GNSS_BRANCH
- else - else
...@@ -119,10 +125,20 @@ stages: ...@@ -119,10 +125,20 @@ stages:
- make install - make install
.clone_wolfrosnode_template: &clone_wolfrosnode_definition .clone_wolfrosnode_template: &clone_wolfrosnode_definition
- echo "TODO clone wolf_ros_node branch ${WOLF_ROS_CORE_BRANCH}" - roscd
- cd ../src
- git clone ssh://git@gitlab.iri.upc.edu:2202/mobile_robotics/wolf_projects/wolf_ros/wolf_ros_node.git
- cd wolf_ros_node
- git checkout $WOLF_ROS_CORE_BRANCH
.build_and_test_template: &build_and_test_definition .build_and_test_template: &build_and_test_definition
- echo "TODO" - roscd
- cd ../src
- git clone ssh://git@gitlab.iri.upc.edu:2202/${CI_PROJECT_PATH}.git
- cd wolf_ros_gnss
- git checkout $CI_COMMIT_BRANCH
- cd ../..
- catkin_make
############ LICENSE HEADERS ############ ############ LICENSE HEADERS ############
license_headers: license_headers:
...@@ -143,7 +159,7 @@ license_headers: ...@@ -143,7 +159,7 @@ license_headers:
############ UBUNTU 16.04 TEST ############ ############ UBUNTU 16.04 TEST ############
build_and_test:xenial: build_and_test:xenial:
stage: build_and_test stage: build_and_test
image: labrobotica/wolf_deps:16.04 image: labrobotica/wolf_deps_ros:16.04
cache: cache:
- key: wolf-xenial - key: wolf-xenial
paths: paths:
...@@ -169,7 +185,7 @@ build_and_test:xenial: ...@@ -169,7 +185,7 @@ build_and_test:xenial:
############ UBUNTU 18.04 TEST ############ ############ UBUNTU 18.04 TEST ############
build_and_test:bionic: build_and_test:bionic:
stage: build_and_test stage: build_and_test
image: labrobotica/wolf_deps:18.04 image: labrobotica/wolf_deps_ros:18.04
cache: cache:
- key: wolf-bionic - key: wolf-bionic
paths: paths:
...@@ -192,6 +208,32 @@ build_and_test:bionic: ...@@ -192,6 +208,32 @@ build_and_test:bionic:
script: script:
- *build_and_test_definition - *build_and_test_definition
############ UBUNTU 20.04 TEST ############
build_and_test:focal:
stage: build_and_test
image: labrobotica/wolf_deps_ros:20.04
cache:
- key: wolf-focal
paths:
- ci_deps/wolf/
- key: gnssutils-focal
paths:
- ci_deps/gnss_utils/
- key: gnss-focal
paths:
- ci_deps/gnss/
except:
- master
before_script:
- *preliminaries_definition
- *install_wolf_definition
- *install_gnssutils_definition
- *install_wolfgnss_definition
- *clone_wolfrosnode_definition
- ldconfig
script:
- *build_and_test_definition
############ RUN DEMOS ############ ############ RUN DEMOS ############
demo_gnss: demo_gnss:
stage: demos stage: demos
......
...@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.3) ...@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.3)
project(wolf_ros_gnss) project(wolf_ros_gnss)
## Compile as C++11, supported in ROS Kinetic and newer ## Compile as C++11, supported in ROS Kinetic and newer
add_compile_options(-std=c++11) add_compile_options(-std=c++14)
# SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/wolf_ros_wrapper/cmake_modules") # SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/wolf_ros_wrapper/cmake_modules")
## Find catkin macros and libraries ## Find catkin macros and libraries
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment