Commit b6609b90 authored by Maximilian Dolling's avatar Maximilian Dolling
Browse files

added sqa by commit to pipeline

parent c5f660d3
Pipeline #11934 passed with stages
in 1 minute and 12 seconds
......@@ -2,6 +2,7 @@ image: python:3
stages:
- test
- sqa
before_script:
- pip install -r requirements.txt
......@@ -25,3 +26,24 @@ test:unittest:
changes:
- "**/*.py"
- ".gitlab-ci.yml"
sqa:
stage: sqa
image:
name: "gitext.gfz-potsdam.de:5000/software/services/fair/software-quality-assurance/software-quality-assurance:latest"
entrypoint: [""]
before_script:
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS_GITLAB" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
script:
- eval $(ssh-agent -s)
- echo "$GITLAB_DEPLOY_KEY" | tr -d '\r' | ssh-add -
- git config user.name "GitLab CI:${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}"
- git config user.email "software-quality-assurance"
- ln -s "$CI_PROJECT_DIR" /repo
- sqa --all
- git add .
- git commit -m "[AUTOMATIC] generated meta/software-quality-assurance-report.md by gitlab ci"
- git push -o ci.skip "git@${CI_SERVER_HOST}:${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}.git" "HEAD:${CI_COMMIT_REF_NAME}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment