diff --git a/.drone.yml b/.drone.yml index 389d72f..c5d406a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,6 +4,7 @@ steps: - name: tests image: python:3.6 commands: + - env - python setup.py test - name: deploy @@ -15,6 +16,10 @@ steps: from_secret: PYPI_PASSWORD PYPI_REPOSITORY: from_secret: PYPI_REPOSITORY + commands: + - env + - echo "__version__=${DRONE_TAG}" + - echo "__version__=${DRONE_TAG}" > eorg/version.py when: event: - tag diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7b27cbd..8732355 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,19 +6,3 @@ test: - pip install -r requirements.txt - pip install pytest-cov - python setup.py pytest - -staging: - image: python:3.6-alpine - stage: deploy - before_script: - - pip install -U setuptools wheel "twine<1.12" - - python setup.py sdist - variables: - TWINE_USERNAME: $PYPI_USERNAME - TWINE_PASSWORD: $PYPI_PASSWORD - script: - - twine upload --repository-url $PYPI_REPOSITORY dist/* - except: - - tags - only: - - master \ No newline at end of file diff --git a/eorg/version.py b/eorg/version.py index 9d64552..231b3ed 100755 --- a/eorg/version.py +++ b/eorg/version.py @@ -1 +1 @@ -__version__=0.80 +__version__=0.81