Make travis
use flit
This commit is contained in:
30
.travis.yml
30
.travis.yml
@@ -1,6 +1,7 @@
|
|||||||
sudo: false
|
sudo: false
|
||||||
language: python
|
language: python
|
||||||
conditions: v1
|
conditions: v1
|
||||||
|
python: 3.6
|
||||||
|
|
||||||
# There are two accounts made specifically for Travis, and the passwords are really only encrypted for obscurity
|
# There are two accounts made specifically for Travis, and the passwords are really only encrypted for obscurity
|
||||||
# The global env variables `client1_email`, `client1_password`, `client2_email`, `client2_password` and `group_id`
|
# The global env variables `client1_email`, `client1_password`, `client2_email`, `client2_password` and `group_id`
|
||||||
@@ -8,9 +9,9 @@ conditions: v1
|
|||||||
|
|
||||||
# The tests are run with `Limit concurrent jobs = 1`, since the tests can't use the clients simultaneously
|
# The tests are run with `Limit concurrent jobs = 1`, since the tests can't use the clients simultaneously
|
||||||
|
|
||||||
install:
|
before_install: pip install flit
|
||||||
- pip install -U -r requirements.txt
|
# Use `--deps production` so that we don't install unnecessary dependencies
|
||||||
- pip install -U -r dev-requirements.txt
|
install: flit install --deps production --extras test
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
pip: true
|
pip: true
|
||||||
@@ -71,20 +72,13 @@ jobs:
|
|||||||
- <<: *test-offline
|
- <<: *test-offline
|
||||||
python: pypy
|
python: pypy
|
||||||
|
|
||||||
# Deploy to PyPI
|
- stage: deploy
|
||||||
- &deploy
|
name: PyPI
|
||||||
stage: deploy
|
if: tag IS present
|
||||||
if: branch = master AND tag IS present
|
|
||||||
install: skip
|
install: skip
|
||||||
|
script: skip
|
||||||
deploy:
|
deploy:
|
||||||
provider: pypi
|
provider: script
|
||||||
user: madsmtm
|
script: flit publish
|
||||||
password:
|
on:
|
||||||
secure: "VA0MLSrwIW/T2KjMwjLZCzrLHw8pJT6tAvb48t7qpBdm8x192hax61pz1TaBZoJvlzyBPFKvluftuclTc7yEFwzXe7Gjqgd/ODKZl/wXDr36hQ7BBOLPZujdwmWLvTzMh3eJZlvkgcLCzrvK3j2oW8cM/+FZeVi/5/FhVuJ4ofs="
|
tags: true
|
||||||
distributions: sdist bdist_wheel
|
|
||||||
skip_existing: true
|
|
||||||
|
|
||||||
# We need the bdist_wheels from both Python 2 and 3
|
|
||||||
python: 3.6
|
|
||||||
- <<: *deploy
|
|
||||||
python: 2.7
|
|
||||||
|
Reference in New Issue
Block a user