Skip to content

Commit

Permalink
change release job docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Sune Debel authored Jul 3, 2020
1 parent 9bd8dd4 commit 001bd51
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
defaults: &defaults
working_directory: ~/pfun
docker:
- image: demosdemon/pyenv

version: 2
jobs:
test:
<<: *defaults
working_directory: ~/pfun
docker:
- image: demosdemon/pyenv
steps:
- checkout
- restore_cache:
Expand Down Expand Up @@ -54,21 +51,28 @@ jobs:
name: Test
command: poetry run tox
release:
<<: *defaults
working_directory: ~/pfun
docker:
- image: circleci/python:3.7.5
steps:
- checkout
- run:
name: Install depenencies
command: poetry install
name: Install poetry
command: |
POETRY_VERSION=1.0.9 curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python && \
cat $HOME/.poetry/env >> $BASH_ENV
- run:
name: Install depenencies
command: poetry install
- run:
name: Check version
command: poetry run python scripts/check_version.py pyproject.toml $CIRCLE_TAG
name: Check version
command: poetry run python scripts/check_version.py pyproject.toml $CIRCLE_TAG
- run:
name: Build
command: poetry build
name: Build
command: poetry build
- run:
name: Release
command: poetry publish --username $PYPI_USERNAME --password $PYPI_PASSWORD
name: Release
command: poetry publish --username $PYPI_USERNAME --password $PYPI_PASSWORD

workflows:
version: 2
Expand Down

0 comments on commit 001bd51

Please sign in to comment.