2018-06-20 12:31:51 +10:00
|
|
|
# Based on the GitLab example CI configuration
|
|
|
|
|
2018-07-19 18:45:07 +10:00
|
|
|
# use an image which probably has an up-to-date gcc _and_ >=python3.6
|
|
|
|
image: base/archlinux
|
2018-06-20 12:31:51 +10:00
|
|
|
|
2018-06-20 12:45:39 +10:00
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
|
2018-06-20 12:31:51 +10:00
|
|
|
build:
|
|
|
|
stage: build
|
|
|
|
before_script:
|
2018-07-19 18:45:07 +10:00
|
|
|
- pacman --noconfirm -Sy
|
|
|
|
- pacman --noconfirm -S python3 gcc ninja cmake ragel git
|
2018-06-20 12:31:51 +10:00
|
|
|
script:
|
2018-06-20 13:04:55 +10:00
|
|
|
- mkdir build && cd build
|
2018-06-20 13:23:14 +10:00
|
|
|
- cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DLTO=ON -DTESTS=ON
|
2018-06-20 13:04:55 +10:00
|
|
|
- ninja
|
|
|
|
artifacts:
|
|
|
|
untracked: true
|
2018-07-19 12:35:37 +10:00
|
|
|
paths:
|
|
|
|
- test
|
2018-07-19 14:54:51 +10:00
|
|
|
expire_in: '1 day'
|
2018-06-20 12:31:51 +10:00
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
2018-06-20 13:04:55 +10:00
|
|
|
before_script:
|
2018-07-19 18:45:07 +10:00
|
|
|
- pacman --noconfirm -Sy
|
|
|
|
- pacman --noconfirm -S cmake ragel
|
2018-06-20 12:31:51 +10:00
|
|
|
script:
|
2018-06-20 13:04:55 +10:00
|
|
|
- cd build
|
2018-06-20 12:31:51 +10:00
|
|
|
- ctest -vvv
|
2018-07-18 16:44:14 +10:00
|
|
|
artifacts:
|
2018-07-19 14:28:49 +10:00
|
|
|
when: on_failure
|
|
|
|
untracked: true
|
2018-07-19 14:54:51 +10:00
|
|
|
expire_in: '1 day'
|