2018-06-20 12:31:51 +10:00
|
|
|
# Based on the GitLab example CI configuration
|
|
|
|
|
|
|
|
# use the official gcc image, based on debian
|
|
|
|
image: gcc
|
|
|
|
|
|
|
|
build:
|
|
|
|
stage: build
|
|
|
|
before_script:
|
|
|
|
- apt update
|
2018-06-20 12:41:47 +10:00
|
|
|
- apt -y install cmake ninja-build python3 ragel
|
2018-06-20 12:31:51 +10:00
|
|
|
script:
|
|
|
|
- cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DLTO=ON -DTESTS=ON
|
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- ctest -vvv
|