Commit eb43f357 authored by Claudio André's avatar Claudio André

CI: add GitLab continuous integration

It uses the shared runners provided by GNOME at jenkins.gnome.org.
parent 3b89e400
services:
- docker
stages:
- build
- cleanup
before_script:
- cd ..
- ln -s $(pwd) /cwd
.build: &build
stage: build
artifacts:
when: always
paths:
- $(pwd)/logFile
script:
# Clean the build machine
- rm -rf jhbuild/
- rm -rf .cache/
# Make the log File accessible
- mkdir -p .cache/jhbuild/build/gjs
- touch .cache/jhbuild/build/gjs/test-suite.log
- ln -f .cache/jhbuild/build/gjs/test-suite.log $(pwd)/gjs/logFile
# Build and test GJS
- 'if [[ -d "$(pwd)/SAVED/$OS/jhbuild" ]]; then
$(pwd)/gjs/test/test-ci.sh GET_FILES;
else
$(pwd)/gjs/test/test-ci.sh BUILD_MOZ;
fi'
- $(pwd)/gjs/test/test-ci.sh GJS
ubuntu_gcc:
<<: *build
image: ubuntu:rolling
variables:
BASE: ubuntu
OS: ubuntu:rolling
CC: gcc
fedora_gcc:
<<: *build
image: fedora:latest
variables:
BASE: fedora
OS: fedora:latest
CC: gcc
BUILD_OPTS: "--enable-ubsan"
on_failure:
stage: cleanup
script:
- echo '-- FAILURE --'
- 'if [[ -f $(pwd)/.cache/jhbuild/build/gjs/test-suite.log ]]; then
cat $(pwd)/.cache/jhbuild/build/gjs/test-suite.log;
else
echo "-- NO LOG FILE FOUND --";
fi'
when: on_failure
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment