1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
# Configure pre-commit CI via an MR to the project.
image: fedora:latest
# Only run the pipeline for an MR.
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
# We split this into 3 stages.
stages:
- build
- test
build-job:
stage: build
script:
- dnf -y install git gcc automake autoconf libtool m4 elfutils-devel dejagnu
- ./autogen.sh
- ./configure
- make
- make install DESTDIR=/tmp/ltrace
- echo "Successful build."
test-job:
stage: test
script:
- echo "Skipping test for now until we make them container aware."
|