Skip to content

Commit

Permalink
making an exclusive pylint run
Browse files Browse the repository at this point in the history
  • Loading branch information
opalmer committed Sep 15, 2014
1 parent 63c36ae commit 7eb2427
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
- TDB_TYPE=postgres TDB_DRIVER=psycopg2 PYFARM_DATABASE_URI="postgresql+psycopg2://postgres:@127.0.0.1/pyfarm" PYFARM_CONFIG="prod" PYFARM_SECRET_KEY="travis"
- TDB_TYPE=mysql TDB_DRIVER="mysql-connector-python --allow-external mysql-connector-python" PYFARM_DATABASE_URI="mysql+mysqlconnector://travis:@127.0.0.1/pyfarm" PYFARM_CONFIG="debug"
- TDB_TYPE=mysql TDB_DRIVER="mysql-connector-python --allow-external mysql-connector-python" PYFARM_DATABASE_URI="mysql+mysqlconnector://travis:@127.0.0.1/pyfarm" PYFARM_CONFIG="prod" PYFARM_SECRET_KEY="travis"
- PYLINT=1

matrix:
fast_finish: true
Expand All @@ -22,24 +23,25 @@ before_install:
- curl https://raw.githubusercontent.com/pyfarm/pyfarm/master/misc/retry.sh -o retry.sh
- source retry.sh
- if [[ $TDB_DRIVER != "" ]]; then retry pip install $TDB_DRIVER --quiet; fi
- if [[ $PYLINT == "1" ]]; then retry pip install pylint; fi

install:
- retry pip install coverage python-coveralls --quiet
- retry pip install git+git://github.com/pyfarm/pyfarm-core.git#egg=pyfarm.core --egg --quiet
- retry pip install -e . --egg --quiet
- if [[ $PYLINT != "1" ]]; then retry pip install coverage python-coveralls --quiet; fi
- if [[ $PYLINT != "1" ]]; then retry pip install git+git://github.com/pyfarm/pyfarm-core.git#egg=pyfarm.core --egg --quiet; fi
- if [[ $PYLINT != "1" ]]; then retry pip install -e . --egg --quiet; fi

before_script:
- if [[ $TDB_TYPE == "postgres" ]]; then psql -c "create database pyfarm;" -U postgres; fi
- if [[ $TDB_TYPE == "mysql" ]]; then mysql -e "create database pyfarm;"; fi

script:
- pip freeze
- nosetests -s --verbose --with-coverage --cover-package=pyfarm.models tests/test_models
- mv -v .coverage .coverage.1
- nosetests -s --verbose --with-coverage --cover-package=pyfarm.master tests/test_master
- mv -v .coverage .coverage.2
- coverage combine
- pylint pyfarm --errors-only
- if [[ $PYLINT != "1" ]]; then pip freeze; fi
- if [[ $PYLINT != "1" ]]; then nosetests -s --verbose --with-coverage --cover-package=pyfarm.models tests/test_models; fi
- if [[ $PYLINT != "1" ]]; then mv -v .coverage .coverage.1; fi
- if [[ $PYLINT != "1" ]]; then nosetests -s --verbose --with-coverage --cover-package=pyfarm.master tests/test_master; fi
- if [[ $PYLINT != "1" ]]; then mv -v .coverage .coverage.2; fi
- if [[ $PYLINT != "1" ]]; then coverage combine; fi
- if [[ $PYLINT == "1" ]]; then pylint pyfarm --errors-only; fi

after_success:
- coveralls

0 comments on commit 7eb2427

Please sign in to comment.