Files
ugv_sdk/.gitlab-ci.yml
2020-09-07 12:13:15 +08:00

31 lines
722 B
YAML

## Build and test as standard C++ package
cpp-build:
stage: build
image: rduweston/ubuntu-ci:18.04
before_script:
- apt update && apt -y install libasio-dev
script:
- mkdir build && cd build
- cmake ..
- cmake --build . && cpack
# artifacts:
# paths:
# - build/bin
# depending on your build setup it's most likely a good idea to cache outputs to reduce the build time
# cache:
# paths:
# - "*.o"
cpp-test:
stage: test
image: rduweston/ubuntu-ci:18.04
before_script:
- apt update && apt -y install libasio-dev
script:
- mkdir build && cd build
- cmake -DBUILD_TESTS=ON ..
- cmake --build .
- ./bin/gtest_all
# dependencies:
# - cpp-build