mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 04:34:29 +08:00
add pypi deploy config
This commit is contained in:
24
.travis.yml
24
.travis.yml
@@ -1,32 +1,34 @@
|
|||||||
language: python
|
language: python
|
||||||
# cache package wheels (1 cache per python version)
|
|
||||||
cache: pip
|
cache: pip
|
||||||
# newer python versions are available only on xenial (while some older only on trusty) Ubuntu distribution
|
|
||||||
dist: xenial
|
dist: xenial
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- name: "Typecheck Django test suite"
|
- name: Typecheck Django test suite
|
||||||
python: 3.7
|
python: 3.7
|
||||||
script: |
|
script: 'python ./scripts/typecheck_tests.py'
|
||||||
python ./scripts/typecheck_tests.py
|
|
||||||
|
|
||||||
- name: "Run plugin test suite with python 3.7"
|
- name: Run plugin test suite with python 3.7
|
||||||
python: 3.7
|
python: 3.7
|
||||||
script: |
|
script: |
|
||||||
set -e
|
set -e
|
||||||
pytest
|
pytest
|
||||||
|
|
||||||
- name: "Lint with black"
|
- name: Lint with black
|
||||||
python: 3.7
|
python: 3.7
|
||||||
script: |
|
script: 'black --check --line-length=120 django-stubs/'
|
||||||
black --check --line-length=120 django-stubs/
|
|
||||||
|
|
||||||
before_install: |
|
before_install: |
|
||||||
# Upgrade pip, setuptools, and wheel
|
# Upgrade pip, setuptools, and wheel
|
||||||
pip install -U pip setuptools wheel
|
pip install -U pip setuptools wheel
|
||||||
|
|
||||||
install: |
|
install: |
|
||||||
pip install -r ./dev-requirements.txt
|
pip install -r ./dev-requirements.txt
|
||||||
pip install -r ./scripts/typecheck-tests-requirements.txt
|
pip install -r ./scripts/typecheck-tests-requirements.txt
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
provider: pypi
|
||||||
|
user: "mkurnikov"
|
||||||
|
password:
|
||||||
|
secure: 0E+hkaIdtpEtyL1KZeglunZ5/PKjouFfa8ljakAwoig7VNUL+2sO/bTyg38wRQl0NvzDzEHSMEt1bzg4Tq7b7Zp6nLuewG/w7mGLzqaOlTySiPEfRsg8s6uO2KrTn7g9VhlXH6UtyTXoQdMt6aE8+bt/GmEesanS57NB2mhwmylFgQwlJFu4LfIv/+aGmc4eLeGI2Qhvs9QYf7qvYlLQldgFh8mAckQEEvaBg35sf+puypZgf4nkx1k/dfG9wnFWZU8PJ41LbMw/Wj+k/9NpF8ePwiAr0fvRMErZd8nvoiWjQQjhzgrLVHhXEP5pTHh3zjDuGFMWyKuBhC6WLsG4qOQz/HvxeYvNI+jaTp15BgxtefG/pCNDUl/8GlCde7xVt7xzEcYNJSRaZPY2oofEFSd9qDnr4kqmyCXpNsaHRHvkL61bFjXUcfOsMMYvQCC6N2Jjb7S97RbnDdkOZO/lnFhVANT2rigsaXlSlWyN6f7ApxDNvu6Ehu5yrx6IjlPZJ0sI9vvY3IoS6Fik7w9E6zjNVjbmUn1D4MKFP4v5ppNASOqYcZeLd42j8rjEp0gIc3ccz9aUIT9q8VqSXSdUbqA6SVwvHXIVPxJMXj0bqWBG1iKs0cPBuzRVpRrwkENWCSWElDAewM1qFEnK0LppyoYFbqoQ8F5FG0+re7QttKQ=
|
||||||
|
on:
|
||||||
|
tags: true
|
||||||
Reference in New Issue
Block a user