Skip to content
Snippets Groups Projects
Commit 07c2e7ee authored by Pieter Donker's avatar Pieter Donker
Browse files

Update .gitlab-ci.yml file

parent bd37f0f3
No related branches found
No related tags found
No related merge requests found
Pipeline #45406 failed
...@@ -26,10 +26,50 @@ ...@@ -26,10 +26,50 @@
# . See https://support.astron.nl/confluence/display/L2M/L3+SDP+Decision%3A+Gitlab+pipeline+automation+to+test+SDPFW+with+OPC+UA # . See https://support.astron.nl/confluence/display/L2M/L3+SDP+Decision%3A+Gitlab+pipeline+automation+to+test+SDPFW+with+OPC+UA
stages: stages:
- image
- simulation - simulation
- synthesis - synthesis
- hardware - hardware
# build docker image
docker-image:
stage: image
image: docker:latest
tags:
- privileged
only:
refs:
- master
services:
- docker:dind
variables:
DOCKER_TLS_CERTDIR: "/certs"
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- |
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
tag=""
echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'latest'"
else
tag=":$CI_COMMIT_REF_SLUG"
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
fi
- docker build --pull -t "$CI_REGISTRY_IMAGE${tag}" .
- docker push "$CI_REGISTRY_IMAGE${tag}"
lint-vhdl-libraries:
stage: linting
extends: docker-image
allow_failure: true
before_script:
- DEBIAN_FRONTEND=noninteractive apt-get update
- DEBIAN_FRONTEND=noninteractive apt-get install -y python3 python3-pip python3-ipython
- pip3 install vsg --use-pep517
script:
- cd libraries
- find . -name "*.vhd" -exec vsg -f {} \;
############################################################################### ###############################################################################
# HDL simulation stage # HDL simulation stage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment