4fea9955a2
- pip cache auto-config - generic python 3.6 instead of specific version - remove the python version requirement from the push since we are only building one version
26 lines
442 B
YAML
26 lines
442 B
YAML
language: python
|
|
python:
|
|
- 3.6
|
|
cache:
|
|
pip: true
|
|
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
|
|
upload_docs: false
|
|
user: travisci
|
|
on:
|
|
tags: true
|
|
password:
|
|
secure: $TRAVIS_CI_PASSWORD
|
|
after_deploy:
|
|
- curl -X POST "$PIP_INDEX_URL$PACKAGE_NAME/refresh"
|