-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy path.travis.yml
35 lines (28 loc) · 1.15 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
language: python
sudo: false
cache: pip
matrix:
include:
- python: "2.7"
- python: "3.4"
- python: "3.5"
- python: "3.6"
- python: "pypy"
before_install:
- pip install pip setuptools --upgrade
install:
- pip install -r dev-requirements.txt
- python setup.py install
- if [[ $TRAVIS_PYTHON_VERSION == "3.6" ]]; then pip install mypy; fi
script:
- if [[ $TRAVIS_PYTHON_VERSION == "3.6" ]]; then mypy --ignore-missing-imports --follow-imports=silent --python-version=3.6 --warn-no-return --strict-optional toastedmarshmallow tests; fi
- if [[ $TRAVIS_PYTHON_VERSION == "3.6" ]]; then mypy --ignore-missing-imports --follow-imports=silent --python-version=2.7 --warn-no-return --strict-optional toastedmarshmallow tests; fi
- if [[ $TRAVIS_PYTHON_VERSION != "pypy" ]]; then flake8 performance tests; fi
- if [[ $TRAVIS_PYTHON_VERSION != "pypy" ]]; then pylint toastedmarshmallow; fi
- python -m pytest --cov toastedmarshmallow --cov-report term-missing tests
- python performance/benchmark.py
- ./tests/run_marshmallow_tests.sh
after_success:
- coveralls || echo "!! intermittent coveralls failure"
notifications:
email: false