[gjs: 1/13] CI: Remove header / footer
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 1/13] CI: Remove header / footer
- Date: Sat, 26 Oct 2019 04:29:18 +0000 (UTC)
commit 071e8a15a0a504132c8f6208ab5bbc54740e6a9e
Author: Philip Chimento <philip endlessm com>
Date: Wed Oct 16 15:29:31 2019 -0700
CI: Remove header / footer
Since we are starting to have different scripts for different jobs, this
is getting repetitive to specify at the start and end of every script.
.gitlab-ci.yml | 31 -------------------------------
1 file changed, 31 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5bdb5118..04a8dc5a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,19 +8,6 @@ stages:
- manual
- deploy
-.CI_header: &CI_header 'echo;
- echo "*********************************************";
- echo "*** JavaScript bindings for GNOME ***";
- echo "*** Continuous Integration ***";
- echo "*********************************************";
- echo;
- '
-.CI_footer: &CI_footer 'echo;
- echo "*********************************************";
- echo "*** See you soon ***";
- echo "*********************************************";
- '
-
.Coverage files: &cov_files [configure, Makefile, ./*.log, ./*.trs, ./installed-tests/scripts/*.log,
./installed-tests/scripts/*.trs, coverage/]
.Regular files: ®_files [configure, Makefile, ./*.log, ./*.trs, ./installed-tests/scripts/*.log,
./installed-tests/scripts/*.trs]
@@ -39,9 +26,6 @@ stages:
paths: *reg_files
script:
- # CI starts here. Previous messages are from GitLab Runner setup.
- - *CI_header
-
# GitLab is keeping some files between jobs. Remove them.
- rm -rf configure Makefile *.log analysis
@@ -78,9 +62,6 @@ stages:
fi
'
- # Done
- - *CI_footer
-
#############################################
# Regular tests #
#############################################
@@ -164,12 +145,10 @@ build_meson:
- _build/meson-logs/*log.txt
script:
- - *CI_header
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
- meson _build $BUILD_OPTS
- ninja -C _build
- xvfb-run -a meson test -C _build --verbose --no-stdsplit --print-errorlogs
- - *CI_footer
# Generates
# The Code Coverage Report
@@ -234,9 +213,7 @@ cpplint:
variables:
TASK_ID: "cpplint"
script:
- - *CI_header
- test/test-ci.sh CPPLINT
- - *CI_footer
except:
refs:
- schedules
@@ -398,9 +375,6 @@ zeal_11:
- $CRON_TASK == "BUILD_CI_IMAGES"
script:
- # CI starts here. Previous messages are from GitLab Runner setup.
- - *CI_header
-
# Where the real magic happens
- docker run --name "$NAME" -v "$(pwd):/on-host" -e OS="$IMAGE" -e BUILD_OPTS="$BUILD_OPTS" -e CC=gcc -e
MOZJS_BRANCH="$MOZJS_BRANCH" "$IMAGE" bash -e -c "cd /on-host && test/ci-images.sh"
- docker commit "$NAME" "$CI_REGISTRY_IMAGE:$NAME"
@@ -416,14 +390,10 @@ zeal_11:
docker push "$CI_REGISTRY_IMAGE"
fi
- # Done
- - *CI_footer
-
alpine.cpplint:
<<: *create_docker_image
script:
# Overrides the script from create_docker_image above
- - *CI_header
- docker build -f test/extra/Dockerfile.alpine.cpplint -t "$CI_REGISTRY_IMAGE:alpine.cpplint" .
- docker tag "$CI_REGISTRY_IMAGE:alpine.cpplint" "$CI_REGISTRY_IMAGE:job-${CI_JOB_ID}_alpine.cpplint"
- docker images
@@ -432,7 +402,6 @@ alpine.cpplint:
if [[ "$CI_PIPELINE_SOURCE" == "schedule" ]]; then
docker push "$CI_REGISTRY_IMAGE"
fi
- - *CI_footer
variables:
DOCKER_DRIVER: overlay
# https://about.gitlab.com/2019/07/31/docker-in-docker-with-docker-19-dot-03
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]