From f9bca7c67526b84a47aa5cfa39ce04acb1c99e94 Mon Sep 17 00:00:00 2001 From: sneakypete81 Date: Sun, 9 Jun 2013 17:38:37 +0100 Subject: [PATCH] Run pylint after the main tests are complete --- .travis.yml | 7 +++++++ .travis/install_pylint | 3 +++ .travis/run_travis | 6 ------ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 64a72c7..b03f4e1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,3 +13,10 @@ env: - secure: "YdUPDO7sTUTG2EwUlrxwOWKhlGXJiIK+RBWDspqvM8UQV4CQjzIsRX8urUIN\nSpSjJOfbIw25S+AsLpEBye8OJMncm/16Xp7PL5tlkNmRC12mPVG8f+wpOkrW\nt8v+2Cv/prYDn0tjoqnV1f5Nv5cEW6kAkG19UQ4QBgQzirtrs9Y=" script: .travis/run_travis + +after_script: + # Run Pylint + # (for information only, any errors don't affect the Travis result) + - pylint --use-ignore-patch=y openphoto + - pylint --use-ignore-patch=y tests + diff --git a/.travis/install_pylint b/.travis/install_pylint index 1826815..e3ea6c2 100755 --- a/.travis/install_pylint +++ b/.travis/install_pylint @@ -6,3 +6,6 @@ wget https://bitbucket.org/sneakypete81/pylint/get/$HG_HASH.zip unzip $HG_HASH.zip cd sneakypete81-pylint-$HG_HASH python setup.py install + +cd .. +rm -r sneakypete81-pylint-$HG_HASH diff --git a/.travis/run_travis b/.travis/run_travis index 7a5c4ff..bfaee74 100755 --- a/.travis/run_travis +++ b/.travis/run_travis @@ -1,11 +1,5 @@ #!/bin/bash -# Run Pylint -# (for information only, any errors don't affect the Travis result) - -pylint --use-ignore-patch=y openphoto -pylint --use-ignore-patch=y tests - # Create a config file containing the test host's secrets CONFIG_DIR=~/.config/openphoto