[gjs: 4/5] CI: add GitLab continuous integration
- From: Gitlab Administrative User <gitlab src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 4/5] CI: add GitLab continuous integration
- Date: Wed, 1 Nov 2017 04:12:53 +0000 (UTC)
commit eb43f3577e2de767c91be779f6d1023a5f1724c5
Author: Claudio André <claudioandre br gmail com>
Date: Tue Oct 31 07:17:56 2017 -0200
CI: add GitLab continuous integration
It uses the shared runners provided by GNOME at jenkins.gnome.org.
.gitlab-ci.yml | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..c6352ea
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,63 @@
+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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]