libcruft-util/.gitlab-ci.yml

37 lines
839 B
YAML
Raw Permalink Normal View History

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