diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..dcd30d2885e7281ca6755de5bb33ca1bd37ad1ad --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,85 @@ +image: segaleran/ceres + +cache: + key: "$CI_COMMIT_REF_NAME" + untracked: true + paths: + - build + - bin + - lib + +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 + - mkdir -pv build + - cd build + - ls + - cmake -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -fPIC" -DSPDLOG_BUILD_TESTING=OFF .. + - make install + - cd ../.. + +# YAML +# - apt-get install -y libyaml-cpp-dev + - if [ -d yaml-cpp ]; then + - echo "directory exists" + - if [ "$(ls -A ./yaml-cpp)" ]; then + - echo "directory not empty" + - cd yaml-cpp + - git pull + - else + - echo "directory empty" + - git clone https://github.com/jbeder/yaml-cpp.git + - cd yaml-cpp + - fi + - else + - echo "directory inexistent" + - git clone https://github.com/jbeder/yaml-cpp.git + - cd yaml-cpp + - fi + - mkdir -pv build + - cd build + - ls + - cmake -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -fPIC" -DYAML_CPP_BUILD_TESTS=OFF .. + - make install + - cd ../.. + +wolf_build: + stage: build + only: + - renameFixPose + - master + script: + - mkdir -pv build + - cd build + - ls # we can check whether the directory was already full + - cmake -DCMAKE_BUILD_TYPE=release .. + - make + +wolf_test: + stage: test + only: + - renameFixPose + - master + script: + - cd build + - ctest