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

Testing CI with multiple ubuntu releases

parent 14e63344
No related branches found
No related tags found
No related merge requests found
Pipeline #6909 passed
image: labrobotica/ceres:1.14
before_script:
- ls
- apt-get update
- apt-get install -y build-essential cmake
# SPDLOG
# - apt-get install -y libspdlog-dev
- if [ -d spdlog ]; then
- echo "directory exists"
- if [ "$(ls -A ./spdlog)" ]; then
- echo "directory not empty"
- cd spdlog
- git pull
- else
- echo "directory empty"
- git clone https://github.com/gabime/spdlog.git
- cd spdlog
- fi
- else
- echo "directory inexistent"
- git clone https://github.com/gabime/spdlog.git
- cd spdlog
- fi
- git fetch
- git checkout v0.17.0
- mkdir -pv build
- cd build
- ls
- cmake -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -fPIC" -DSPDLOG_BUILD_TESTING=OFF ..
- make -j$(nproc)
- make install
- cd ../..
# YAML
- apt-get install -y libyaml-cpp-dev
wolf_build_and_test:
stage: build
except:
- master
.build_and_test_template: &build_and_test_definition
script:
- mkdir -pv build
- cd build
- ls # we can check whether the directory was already full
- cmake -DCMAKE_BUILD_TYPE=release -DBUILD_DEMOS=ON -DBUILD_TESTS=ON ..
- make -j$(nproc)
- ctest -j$(nproc)
......@@ -51,3 +9,15 @@ wolf_build_and_test:
- ../bin/hello_wolf
- ../bin/hello_wolf_autoconf
- make install
build_and_test:xenial:
image: labrobotica/wolf_deps:16.04
except:
- master
<<: *build_and_test_definition
build_and_test:bionic:
image: labrobotica/wolf_deps:18.04
except:
- master
<<: *build_and_test_definition
\ No newline at end of file
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