mirror of
https://github.com/gogcom/galaxy-integrations-python-api.git
synced 2026-01-04 12:58:24 -05:00
24 lines
619 B
YAML
24 lines
619 B
YAML
image: registry-gitlab.gog.com/galaxy-client/gitlab-ci-tools:latest
|
|
|
|
stages:
|
|
- test
|
|
- deploy
|
|
|
|
test_package:
|
|
stage: test
|
|
script:
|
|
- pip install -r requirements.txt
|
|
- pytest
|
|
except:
|
|
- tags
|
|
|
|
deploy_package:
|
|
stage: deploy
|
|
script:
|
|
- export VERSION=$(python setup.py --version)
|
|
- python setup.py sdist --formats=gztar upload -r gog-pypi
|
|
- curl -X POST --silent --show-error --fail
|
|
"https://gitlab.gog.com/api/v4/projects/${CI_PROJECT_ID}/repository/tags?tag_name=${VERSION}&ref=${CI_COMMIT_REF_NAME}&private_token=${PACKAGE_DEPLOYER_API_TOKEN}"
|
|
when: manual
|
|
except:
|
|
- tags |