SDK-2520: Configure deployment

This commit is contained in:
Romuald Juchnowicz-Bierbasz
2019-02-11 14:30:08 +01:00
parent da91ff911f
commit b7b759d483
2 changed files with 13 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ image: registry-gitlab.gog.com/galaxy-client/gitlab-ci-tools:latest
stages:
- test
- deploy
test_package:
stage: test
@@ -9,4 +10,14 @@ test_package:
- pip install -r requirements.txt
- pytest
except:
- tags
- 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

View File

@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
setup(
name="galaxy.python.api",
name="galaxy.plugin.api",
version="0.1",
description="Galaxy python plugin API",
author='Galaxy team',