From d20f2ca677cbadf636a849ac435b9a9f4aae386a Mon Sep 17 00:00:00 2001 From: Adam Hill Date: Tue, 14 Jan 2020 14:08:14 -0500 Subject: [PATCH] Add TravisCI configuration. --- .travis.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..232719c --- /dev/null +++ b/.travis.yml @@ -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"