Files
django-stubs/.travis.yml
2019-01-26 19:12:24 +03:00

33 lines
797 B
YAML

language: python
# cache package wheels (1 cache per python version)
cache: pip
# newer python versions are available only on xenial (while some older only on trusty) Ubuntu distribution
dist: xenial
sudo: required
jobs:
include:
- name: "Typecheck Django test suite"
python: 3.7
script: |
python ./scripts/typecheck_tests.py
- name: "Run plugin test suite with python 3.7"
python: 3.7
script: |
set -e
pytest
- name: "Lint with black"
python: 3.7
script: |
black --check --line-length=120 django-stubs/
before_install: |
# Upgrade pip, setuptools, and wheel
pip install -U pip setuptools wheel
install: |
pip install -r ./dev-requirements.txt
pip install -r ./scripts/typecheck-tests-requirements.txt