updated ci: added cpp build/test in ubuntu focal

This commit is contained in:
Ruixiang Du
2020-09-10 11:57:40 +08:00
parent 0ec0ea5d9d
commit 1cb41c4eb4

View File

@@ -1,5 +1,5 @@
## Build and test as standard C++ package ## Build and test as standard C++ package
cpp-build: bionic-cpp-build:
stage: build stage: build
image: rduweston/ubuntu-ci:18.04 image: rduweston/ubuntu-ci:18.04
before_script: before_script:
@@ -16,7 +16,7 @@ cpp-build:
# paths: # paths:
# - "*.o" # - "*.o"
cpp-test: bionic-cpp-test:
stage: test stage: test
image: rduweston/ubuntu-ci:18.04 image: rduweston/ubuntu-ci:18.04
before_script: before_script:
@@ -29,6 +29,27 @@ cpp-test:
# dependencies: # dependencies:
# - cpp-build # - cpp-build
focal-cpp-build:
stage: build
image: rduweston/ubuntu-ci:20.04
before_script:
- apt update && apt -y install libasio-dev
script:
- mkdir build && cd build
- cmake ..
- cmake --build . && cpack
focal-cpp-test:
stage: test
image: rduweston/ubuntu-ci:20.04
before_script:
- apt update && apt -y install libasio-dev
script:
- mkdir build && cd build
- cmake -DBUILD_TESTS=ON ..
- cmake --build .
- ./bin/gtest_all
## Build and test as catkin package ## Build and test as catkin package
melodic-catkin-build: melodic-catkin-build:
stage: build stage: build