Commit ca97cfe3 authored by Maximilian Schanner's avatar Maximilian Schanner
Browse files

Update .gitlab-ci.yml

parent fc6c75a2
......@@ -8,7 +8,6 @@ stages:
- build
- test
- deploy
- sqa
build-job:
stage: build
......@@ -25,11 +24,11 @@ build-job:
- 'curl --request DELETE --header "PRIVATE-TOKEN: ${API_ACCES_TOKEN}" "https://gitext.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/$ID"'
# upload
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python3 -m twine upload --repository-url https://gitext.gfz-potsdam.de/api/v4/projects/${CI_PROJECT_ID}/packages/pypi dist/* --verbose
rules:
- changes:
- ./pymagglobal/*.py
- ./pymagglobal/dat/*
- ./setup.py
only:
changes:
- pymagglobal/*.py
- pymagglobal/dat/*
- setup.py
test-conda:
......@@ -74,25 +73,3 @@ pages:
- public
only:
- master
sqa:dev:
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 "pymagglobal_software-quality-assurance@gitext.gfz-potsdam.de"
- sqa --repository_dir "${CI_PROJECT_DIR}" run
- git commit QUALITY.md -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}"
dependencies: []
only:
- master
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