From f2d5c2527da26e641086fbc9a11f89bb085e3336 Mon Sep 17 00:00:00 2001
From: Thomas <purcell@fhi-berlin.mpg.de>
Date: Sun, 12 Sep 2021 11:33:53 +0200
Subject: [PATCH] Add needs to .gitlab-ci
This might run tests earlier
---
.gitlab-ci.yml | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1e771941..d811775a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -98,6 +98,7 @@ test-intel-pytest-py:
stage: unit_test
dependencies:
- build-intel-py
+ needs: ["build-intel-py"]
script:
- source cpp_sisso_env_intel_py/bin/activate
- export I_MPI_ROOT=/home/runner/intel/oneapi/mpi/latest/
@@ -114,6 +115,7 @@ test-intel-pytest-param-py:
stage: unit_test
dependencies:
- build-intel-param-py
+ needs: ["build-intel-param-py"]
script:
- source cpp_sisso_env_intel_param_py/bin/activate
- export I_MPI_ROOT=/home/runner/intel/oneapi/mpi/latest/
@@ -130,6 +132,7 @@ test-intel-base-googletest:
stage: unit_test
dependencies:
- build-intel-base
+ needs: ["build-intel-base"]
script:
- export I_MPI_ROOT=/home/runner/intel/oneapi/mpi/latest/
- export INTEL_COMP_ROOT=/home/runner/intel/oneapi/compiler/latest/linux/
@@ -145,6 +148,7 @@ test-intel-param-googletest:
stage: unit_test
dependencies:
- build-intel-param
+ needs: ["build-intel-param"]
script:
- export I_MPI_ROOT=/home/runner/intel/oneapi/mpi/latest/
- export INTEL_COMP_ROOT=/home/runner/intel/oneapi/compiler/latest/linux/
@@ -160,6 +164,7 @@ test-intel-bin-param:
stage: bin_test
dependencies:
- build-intel-param-py
+ needs: ["build-intel-param-py"]
script:
- source cpp_sisso_env_intel_param_py/bin/activate
- export I_MPI_ROOT=/home/runner/intel/oneapi/mpi/latest/
@@ -177,6 +182,7 @@ test-intel-bin-base:
stage: bin_test
dependencies:
- build-intel-py
+ needs: ["build-intel-py"]
script:
- source cpp_sisso_env_intel_py/bin/activate
- export I_MPI_ROOT=/home/runner/intel/oneapi/mpi/latest/
@@ -262,6 +268,7 @@ test-gnu-pytest-py:
stage: unit_test
dependencies:
- build-gnu-py
+ needs: ["build-gnu-py"]
script:
- source cpp_sisso_gnu_py_env/bin/activate
- export LD_LIBRARY_PATH=$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7:$LD_LIBRARY_PATH
@@ -274,6 +281,7 @@ test-gnu-pytest-param-py:
stage: unit_test
dependencies:
- build-gnu-param-py
+ needs: ["build-gnu-param-py"]
script:
- source cpp_sisso_gnu_param_py_env/bin/activate
- export LD_LIBRARY_PATH=$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7:$LD_LIBRARY_PATH
@@ -286,6 +294,7 @@ test-gnu-base-googletest:
stage: unit_test
dependencies:
- build-gnu-base
+ needs: ["build-gnu-base"]
script:
- export OMP_NUM_THREADS=2
- export OMP_PLACES=cores
@@ -296,6 +305,7 @@ test-gnu-param-googletest:
stage: unit_test
dependencies:
- build-gnu-param
+ needs: ["build-gnu-param"]
script:
- export OMP_NUM_THREADS=2
- export OMP_PLACES=cores
@@ -306,6 +316,7 @@ test-gnu-bin-param:
stage: bin_test
dependencies:
- build-gnu-param-py
+ needs: ["build-gnu-param-py"]
script:
- source cpp_sisso_gnu_param_py_env/bin/activate
- export LD_LIBRARY_PATH=$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7:$LD_LIBRARY_PATH
@@ -319,6 +330,7 @@ test-gnu-bin-base:
stage: bin_test
dependencies:
- build-gnu-py
+ needs: ["build-gnu-py"]
script:
- source cpp_sisso_gnu_py_env/bin/activate
- export LD_LIBRARY_PATH=$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7:$LD_LIBRARY_PATH
@@ -372,6 +384,7 @@ pages:
stage: doc_builds
dependencies:
- build-gnu-lcov
+ needs: ["build-gnu-lcov"]
script:
- source cpp_sisso_gnu_lcov_env/bin/activate
- export LD_LIBRARY_PATH=$HOME/intel/oneapi/intelpython/latest/lib/:$HOME/intel/oneapi/intelpython/latest/lib/python3.7/:$LD_LIBRARY_PATH
--
GitLab