Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 1dcd93ad authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

gitlab-ci: use GIT_CLONE_PATH to clone in a fixed directory and thus be able...

gitlab-ci: use GIT_CLONE_PATH to clone in a fixed directory and thus be able to use any of the shared runners
parent a8dc699d
No related branches found
No related tags found
1 merge request!29gitlab-ci: use GIT_CLONE_PATH to clone in a fixed directory and thus be able...
...@@ -6,7 +6,7 @@ stages: ...@@ -6,7 +6,7 @@ stages:
default: default:
image: registry.gitlab.inria.fr/solverstack/docker/base image: registry.gitlab.inria.fr/solverstack/docker/base
tags: ['ci.inria.fr', 'linux', 'small'] # gitlab instance runner (i.e. docker on linux) tags: ['ci.inria.fr', 'linux'] # gitlab instance runner (i.e. docker on linux)
interruptible: true interruptible: true
before_script: before_script:
...@@ -37,6 +37,7 @@ hqr_build_linux: ...@@ -37,6 +37,7 @@ hqr_build_linux:
stage: build stage: build
extends: .only-master-mr extends: .only-master-mr
variables: variables:
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME
SYSTEM: linux SYSTEM: linux
script: script:
- bash .gitlab/build.sh | tee hqr-build-linux.log - bash .gitlab/build.sh | tee hqr-build-linux.log
...@@ -88,6 +89,7 @@ hqr_test_linux: ...@@ -88,6 +89,7 @@ hqr_test_linux:
extends: .only-master-mr extends: .only-master-mr
needs: [hqr_build_linux] needs: [hqr_build_linux]
variables: variables:
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME
SYSTEM: linux SYSTEM: linux
script: script:
- bash .gitlab/test.sh | tee hqr-test-linux.log - bash .gitlab/test.sh | tee hqr-test-linux.log
...@@ -163,6 +165,7 @@ sonarqube: ...@@ -163,6 +165,7 @@ sonarqube:
allow_failure: true allow_failure: true
needs: [hqr_build_linux,hqr_test_linux] needs: [hqr_build_linux,hqr_test_linux]
variables: variables:
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME
GIT_DEPTH: "0" GIT_DEPTH: "0"
script: script:
- ./.gitlab/analysis.sh - ./.gitlab/analysis.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment