From 00faf5c18a42583ab701f08614859e36c3a9e6ee Mon Sep 17 00:00:00 2001 From: schuur <schuur@astron.nl> Date: Fri, 19 Nov 2021 13:03:30 +0100 Subject: [PATCH] -Renamed and grouped stages. -Added comment blocks. -Added trigger to OPC UA test based on changed SOF/RBF (.tar.gz) file. --- .gitlab-ci.yml | 51 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 17 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a2cf8065cd..efaab1ce36 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,14 @@ stages: - - sim-compile - - sim-simulate - - hw-compile - - hw-check-fmax - - hw-check-programming-files - -sim-compile: - stage: sim-compile + - simulation + - synthesis + - hardware + + +############################################################################### +# Simulation stage +############################################################################### +compile: + stage: simulation script: - echo "Compiling for simulation" - mkdir build @@ -15,27 +17,42 @@ sim-compile: paths: - build/ -sim-simulate: - stage: sim-simulate +run: + stage: simulation script: - echo "Running simulations" - test -f "build/info.txt" -hw-compile: - stage: hw-compile + +############################################################################### +# Synthesis stage +############################################################################### +compile: + stage: synthesis script: - - echo "Compiling for hardware" + - echo "Compiling for synthesis" -hw-check-fmax: - stage: hw-check-fmax +check-fmax: + stage: synthesis script: - echo "Checking achieved fMax" -hw-check-programming-files: - stage: hw-check-programming-files +check-programming-files: + stage: synthesis script: - echo "Checking if programming files have been generated" +############################################################################### +# Hardware stage +############################################################################### +trigger-lofar2-opcua-test: + stage: hardware + only: + changes: + - applications/logar2/images/lofar2_unb2b_sdp_station_full.tar.gz + script: + - echo "Found updated programming file. Triggering OPC UA test." + -- GitLab