[gnome-control-center] CI: avoid rebuilding in the test job
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] CI: avoid rebuilding in the test job
- Date: Thu, 21 Jun 2018 16:05:02 +0000 (UTC)
commit 316b901296e781f13ab85607117d1f83e1e0f999
Author: Claudio André <claudioandre br gmail com>
Date: Thu Jun 21 11:03:57 2018 -0300
CI: avoid rebuilding in the test job
The test job was recompiling the software (unexpected behavior).
This was happening because the git checkout runs after the artifacts
download (resulting in the source code being newer than the object
files).
This commits saves and reuses the working directory produced by the
build job.
.gitlab-ci.yml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4e89a0c6a..00452b2a8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,7 +15,7 @@ stages:
.Git Untracked files: &save_untracked_files
artifacts:
name: untracked
- untracked: true
+ paths: [$(pwd)]
expire_in: 3h30min
.Show Info: &environment_information
@@ -47,6 +47,9 @@ build:
- echo "== Report =="
- build-aux/ci/ci-helper.sh "WARNINGS"
+ # Save all but git-related files
+ - rm -rf .git .gitignore .gitmodules
+
##
# Stage: Test
#
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]