diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a2cf8065cda7e7a9e84b8eae6114925e138ff515..efaab1ce367dbee8040f4b48be3b041dd1998e09 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." +