29 lines
552 B
YAML
29 lines
552 B
YAML
# Based on the GitLab example CI configuration
|
|
|
|
# use the official gcc image, based on debian
|
|
image: gcc
|
|
|
|
variables:
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
build:
|
|
stage: build
|
|
before_script:
|
|
- apt update
|
|
- apt -y install cmake ninja-build python3 ragel
|
|
script:
|
|
- mkdir build && cd build
|
|
- cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DLTO=ON -DTESTS=ON
|
|
- ninja
|
|
artifacts:
|
|
untracked: true
|
|
|
|
test:
|
|
stage: test
|
|
before_script:
|
|
- apt update
|
|
- apt -y install cmake python3
|
|
script:
|
|
- cd build
|
|
- ctest -vvv
|