1
Fork 0

Add TravisCI configuration.

This commit is contained in:
Adam Hill 2020-01-14 14:08:14 -05:00
parent 566b9750bf
commit d20f2ca677

28
.travis.yml Normal file
View file

@ -0,0 +1,28 @@
language: python
python:
- 3.6.6
cache:
directories:
- "$HOME/.cache/pip"
env:
global:
- PACKAGE_NAME=wagtail-draftail-snippet
- PIP_INDEX_URL=$PYPI_URL+simple/
install:
- pip install -U pip
- pip install .
- pip install pytest
script:
- pytest
deploy:
provider: pypi
server: $PYPI_URL
skip_upload_docs: true
user: travisci
on:
tags: true
python: '3.6.6'
password:
secure: $TRAVIS_CI_PASSWORD
after_deploy:
- curl -X POST "$PIP_INDEX_URL$PACKAGE_NAME/refresh"