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

CI: easier yaml anchor

parent 290999cd
No related branches found
No related tags found
No related merge requests found
Pipeline #6912 passed
.build_and_test_template: &build_and_test_definition .build_and_test_template: &build_and_test_definition
script: - mkdir -pv build
- mkdir -pv build - cd build
- cd build - cmake -DCMAKE_BUILD_TYPE=release -DBUILD_DEMOS=ON -DBUILD_TESTS=ON ..
- cmake -DCMAKE_BUILD_TYPE=release -DBUILD_DEMOS=ON -DBUILD_TESTS=ON .. - make -j$(nproc)
- make -j$(nproc) - ctest -j$(nproc)
- ctest -j$(nproc) # run demos
# run demos - ../bin/hello_wolf
- ../bin/hello_wolf - ../bin/hello_wolf_autoconf
- ../bin/hello_wolf_autoconf - make install
- make install
build_and_test:xenial: build_and_test:xenial:
image: labrobotica/wolf_deps:16.04 image: labrobotica/wolf_deps:16.04
except: except:
- master - master
<<: *build_and_test_definition script:
- *build_and_test_definition
build_and_test:bionic: build_and_test:bionic:
image: labrobotica/wolf_deps:18.04 image: labrobotica/wolf_deps:18.04
except: except:
- master - master
<<: *build_and_test_definition script:
\ No newline at end of file - *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