diff options
author | XenGi <email@ricardo.band> | 2021-05-23 11:42:45 +0000 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-06-06 13:16:10 +0200 |
commit | ea1d14b7f3fb80e46c7ad60d69aa223e6c532684 (patch) | |
tree | afc79b22a8f427c76c72839789dd2dce23bbe7ef /.gitlab-ci.yml | |
download | gerbonara-ea1d14b7f3fb80e46c7ad60d69aa223e6c532684.tar.gz gerbonara-ea1d14b7f3fb80e46c7ad60d69aa223e6c532684.tar.bz2 gerbonara-ea1d14b7f3fb80e46c7ad60d69aa223e6c532684.zip |
Initial commit
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..d6dce87 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,80 @@ +stages: + - test + - coverage + - build + - upload + +image: python:3-alpine + +variables: + TWINE_NON_INTERACTIVE: "true" + CONFIG_FILE: ".pypirc" + +cache: + paths: + - .pipcache/ + +before_script: + - apk --no-cache add make + - pip --cache-dir .pipcache install -r test-requirements.txt + - cat /etc/alpine-release + - python -V + +.test: + stage: test + script: + - make test + +test:3.6: + extends: .test + image: python:3.6-alpine + +test:3.7: + extends: .test + image: python:3.7-alpine + +test:3.8: + extends: .test + image: python:3.8-alpine + +test:3.9: + extends: .test + image: python:3.9-alpine + +# 3.10 +test:rc: + extends: .test + allow_failure: true + image: python:rc-alpine + +testpypi: + stage: upload + script: + - pip --cache-dir .pipcache install twine + - python setup.py sdist bdist_wheel + - twine upload --skip-existing --repository testpypi dist/* + only: + - master + +pypi: + stage: upload + script: + - pip --cache-dir .pipcache install twine + - python setup.py sdist bdist_wheel + - twine upload --skip-existing --repository pypi dist/* + only: + - tags + +aur_git: + stage: upload + script: + - echo "build pygerber-git" + only: + - master + +aur: + stage: upload + script: + - echo "build pygerber" + only: + - tags |