From c277a572360d1f0c1ce57a208c0bba96faa1ab1b Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Sun, 21 Aug 2022 11:56:43 -0600 Subject: [PATCH] update .gitlab-ci.yml --- .gitlab-ci.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a89759d..4cfb795 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,13 +1,27 @@ image: ubuntu stages: - - test + - unit_test + - build -testbench: # This job runs in the test stage. - stage: test # It only starts when the job in the build stage completes successfully. +testbench: + stage: unit_test + script: + - echo "Installing dependencies..." + - apt update && apt install -y make iverilog + - echo "Running unit tests..." + - make tb + artifacts: + paths: + - tb/**/*.vcd + +synthesis: + stage: build script: - echo "Installing dependencies..." - apt update && apt install -y make iverilog yosys verilator gtkwave arachne-pnr - - echo "Running unit tests..." + - echo "Building binary..." - make - - make sim + artifacts: + paths: + - build \ No newline at end of file