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