mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
travis: pep8 changes to pycodestyle
Travis CI environment changes pep8 into pycodestyle, do the transition on our side as well Reviewed-By: Tibor Dudlak <tdudlak@redhat.com>
This commit is contained in:
parent
03786ad9f3
commit
6c88eb8097
@ -9,7 +9,7 @@ cache: pip
|
|||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- TEST_RUNNER_IMAGE="freeipa/freeipa-test-runner:master-latest"
|
- TEST_RUNNER_IMAGE="freeipa/freeipa-test-runner:master-latest"
|
||||||
PEP8_ERROR_LOG="pep8_errors.log"
|
PEP8_ERROR_LOG="pycodestyle_errors.log"
|
||||||
CI_RESULTS_LOG="ci_results_${TRAVIS_BRANCH}.log"
|
CI_RESULTS_LOG="ci_results_${TRAVIS_BRANCH}.log"
|
||||||
CI_BACKLOG_SIZE=5000
|
CI_BACKLOG_SIZE=5000
|
||||||
CI_RUNNER_LOGS_DIR="/tmp/test-runner-logs"
|
CI_RUNNER_LOGS_DIR="/tmp/test-runner-logs"
|
||||||
@ -51,7 +51,7 @@ env:
|
|||||||
install:
|
install:
|
||||||
- pip install --upgrade pip
|
- pip install --upgrade pip
|
||||||
- pip3 install --upgrade pip
|
- pip3 install --upgrade pip
|
||||||
- pip install pep8
|
- pip install pycodestyle
|
||||||
- >
|
- >
|
||||||
pip3 install
|
pip3 install
|
||||||
git+https://github.com/freeipa/ipa-docker-test-runner@release-0-2-1
|
git+https://github.com/freeipa/ipa-docker-test-runner@release-0-2-1
|
||||||
|
@ -30,7 +30,7 @@ if [[ "$TASK_TO_RUN" == "lint" ]]
|
|||||||
then
|
then
|
||||||
if [[ "$TRAVIS_EVENT_TYPE" == "pull_request" ]]
|
if [[ "$TRAVIS_EVENT_TYPE" == "pull_request" ]]
|
||||||
then
|
then
|
||||||
git diff origin/$TRAVIS_BRANCH -U0 | pep8 --diff &> $PEP8_ERROR_LOG ||:
|
git diff origin/$TRAVIS_BRANCH -U0 | pycodestyle --diff &> $PEP8_ERROR_LOG ||:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# disable developer mode for lint task, otherwise we get an error
|
# disable developer mode for lint task, otherwise we get an error
|
||||||
|
Loading…
Reference in New Issue
Block a user