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

CI: using cache

parent 358b19a9
No related branches found
No related tags found
2 merge requests!18Release after RAL,!17After 2nd RAL submission
...@@ -21,19 +21,31 @@ ...@@ -21,19 +21,31 @@
- apt-get update - apt-get update
.install_wolf_template: &install_wolf_definition .install_wolf_template: &install_wolf_definition
- git clone ssh://git@gitlab.iri.upc.edu:2202/mobile_robotics/wolf_projects/wolf_lib/wolf.git - if [ -d wolf ]; then
- cd wolf - echo "directory wolf exists"
- cd wolf
- git pull
- else
- git clone ssh://git@gitlab.iri.upc.edu:2202/mobile_robotics/wolf_projects/wolf_lib/wolf.git
- cd wolf
- fi
- mkdir -pv build - mkdir -pv build
- cd build - cd build
- cmake -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON .. - cmake -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON ..
- make -j$(nproc) - make -j2
- ctest -j$(nproc) - ctest -j2
- make install - make install
- cd ../.. - cd ../..
.install_wolfimu_template: &install_wolfimu_definition .install_wolfimu_template: &install_wolfimu_definition
- git clone ssh://git@gitlab.iri.upc.edu:2202/mobile_robotics/wolf_projects/wolf_lib/plugins/imu.git - if [ -d imu ]; then
- cd imu - echo "directory imu exists"
- cd imu
- git pull
- else
- git clone ssh://git@gitlab.iri.upc.edu:2202/mobile_robotics/wolf_projects/wolf_lib/plugins/imu.git
- cd imu
- fi
- mkdir -pv build - mkdir -pv build
- cd build - cd build
- cmake -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON .. - cmake -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON ..
...@@ -53,6 +65,13 @@ ...@@ -53,6 +65,13 @@
############ UBUNTU 16.04 TESTS ############ ############ UBUNTU 16.04 TESTS ############
wolf_build_and_test_none:xenial: wolf_build_and_test_none:xenial:
image: labrobotica/wolf_deps:16.04 image: labrobotica/wolf_deps:16.04
cache:
- key: wolf-xenial
paths:
- wolf/
- key: imu-xenial
paths:
- imu/
except: except:
- master - master
before_script: before_script:
...@@ -66,6 +85,13 @@ wolf_build_and_test_none:xenial: ...@@ -66,6 +85,13 @@ wolf_build_and_test_none:xenial:
############ UBUNTU 18.04 TESTS ############ ############ UBUNTU 18.04 TESTS ############
wolf_build_and_test_none:bionic: wolf_build_and_test_none:bionic:
image: labrobotica/wolf_deps:18.04 image: labrobotica/wolf_deps:18.04
cache:
- key: wolf-bionic
paths:
- wolf/
- key: imu-bionic
paths:
- imu/
except: except:
- master - master
before_script: before_script:
......
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