2019-04-05 19:48:15 +03:00
|
|
|
language: python
|
|
|
|
|
|
|
|
cache: pip
|
|
|
|
before_cache:
|
|
|
|
- rm ~/.cache/pip/log/debug.log
|
|
|
|
|
|
|
|
python:
|
|
|
|
- "3.6"
|
|
|
|
|
2020-03-06 12:31:20 +03:00
|
|
|
jobs:
|
|
|
|
include:
|
2020-03-25 19:07:29 +03:00
|
|
|
- name: cardboard linter
|
2020-03-06 12:31:20 +03:00
|
|
|
install:
|
|
|
|
- pip install --upgrade cardboardlint pylint
|
2020-05-26 11:15:02 +03:00
|
|
|
script: |
|
2020-03-06 12:31:20 +03:00
|
|
|
# Run cardboardlinter, in case of pull requests
|
2020-05-26 11:15:02 +03:00
|
|
|
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
|
|
|
if [ "$TRAVIS_BRANCH" != "master" ]; then
|
|
|
|
git fetch origin $TRAVIS_BRANCH:$TRAVIS_BRANCH
|
2020-03-06 12:31:20 +03:00
|
|
|
fi
|
2020-05-26 11:15:02 +03:00
|
|
|
cardboardlinter --refspec $TRAVIS_BRANCH -n auto;
|
|
|
|
fi
|