Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
id2
Software
services
FAIR
sqa_test
Commits
b6609b90
Commit
b6609b90
authored
Aug 27, 2020
by
Maximilian Dolling
Browse files
added sqa by commit to pipeline
parent
c5f660d3
Pipeline
#11934
passed with stages
in 1 minute and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
b6609b90
...
...
@@ -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}"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment