Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add continuous integration (Travis CI) #41

Closed
sdhutchins opened this issue Feb 24, 2019 · 2 comments
Closed

Add continuous integration (Travis CI) #41

sdhutchins opened this issue Feb 24, 2019 · 2 comments

Comments

@sdhutchins
Copy link
Member

sdhutchins commented Feb 24, 2019

Check out python-poetry/poetry#366

@sdhutchins
Copy link
Member Author

sdhutchins commented Feb 24, 2019

Start with:

language: python
python:
  - 3.5
before_install:
- pip install poetry
install:
- poetry install -v

@sdhutchins
Copy link
Member Author

sdhutchins commented Feb 24, 2019

A full example (https://wrongsideofmemphis.com/2018/10/28/package-and-deploy-a-python-module-in-pypi-with-poetry-tox-and-travis/):

language: python
python:
- '2.7'
- '3.5'
- '3.6'
matrix:
  include:
  - python: 3.7
    dist: xenial
before_install:
- pip install poetry
install:
- poetry install -v
- pip install tox-travis
script:
- tox
before_deploy:
- poetry config http-basic.pypi $PYPI_USER $PYPI_PASSWORD
- poetry build
deploy:
  provider: script
  script: poetry publish
  on:
    tags: true
    condition: "$TRAVIS_PYTHON_VERSION == 3.7"
env:
  global:
  - secure: [REDACTED]
  - secure: [REDACTED]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant