summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2019-10-18 11:57:20 +0200
committerJannis Leidel <jannis@leidel.info>2019-10-18 12:02:37 +0200
commit641265f4452ac1ebfee3ea2687a844907b605e6c (patch)
tree79e6ae1b985b53020cb7a96c2d957370e538f966
parentf3d02aa3b088e2f9044fe5e4869e8c8cb91d2cdc (diff)
downloadtablib-ci.tar.gz
Add project release config and use Travis build stages.ci
Refs #378.
-rw-r--r--.travis.yml46
1 files changed, 29 insertions, 17 deletions
diff --git a/.travis.yml b/.travis.yml
index 79a5175..55a2c9a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,20 +1,32 @@
language: python
cache: pip
-
-matrix:
+script: echo "Running tests against $(python --version) ..."
+jobs:
include:
- - python: 2.7
- - python: 3.5
- - python: 3.6
- - python: 3.7
- - python: 3.8-dev
-
-install:
- - pip install -r requirements.txt
- - pip install -U pytest pytest-cov
-
-script: pytest --cov tablib
-
-after_success:
- - pip install -U codecov
- - codecov
+ - stage: test
+ script: pytest --cov tablib
+ matrix:
+ include:
+ - python: 2.7
+ - python: 3.5
+ - python: 3.6
+ - python: 3.7
+ - python: 3.8-dev
+ install:
+ - pip install -r requirements.txt
+ - pip install -U pytest pytest-cov
+ after_success:
+ - pip install -U codecov
+ - codecov
+ - stage: deploy
+ script: skip
+ deploy:
+ provider: pypi
+ user: jazzband
+ server: https://jazzband.co/projects/tablib/upload
+ password:
+ secure: svV4fYtodwW+iTyFOm5ISEfhVwcA+6vTskD3x6peznc40TdMV9Ek8nT3Q/NB4lCbXoUw2qR4H6uhLCjesnv/VvVk/qbitCyD8ySlgwOV5n7NzJs8lC8EYaHSjGQjatTwJAokfGVYkPawkI7HXDqtDggLUQBK+Ag8HDW+XBSbQIU=
+ distributions: sdist bdist_wheel
+ on:
+ tags: true
+ repo: jazzband/tablib