Skip to content

Commit

Permalink
Testing: only use changed files to python3 test; Fix rucio#1505
Browse files Browse the repository at this point in the history
  • Loading branch information
hahahannes committed Oct 16, 2018
1 parent af71aba commit 9db6621
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions tools/travis/check_python_3.sh
Expand Up @@ -20,16 +20,17 @@ echo '==============================='
echo 'Running pylint '
echo '==============================='

for filename in $(find lib/rucio bin);
for filename in $(cat changed_files.txt);
do
if grep -q "PY3K COMPATIBLE" $filename; then
echo "Check if file" $filename "is compatible"
pylint --py3k -d no-absolute-import $filename
if [ $? -ne 0 ]; then
echo "PYLINT FAILED"
cat pylint.out
exit 1
fi
fi
done
done
echo "PYLINT PASSED"
tail -n 3 pylint.out
2 changes: 1 addition & 1 deletion tools/travis/install_script.sh
Expand Up @@ -39,7 +39,7 @@ elif [[ $SUITE == "all" ]]; then
cp etc/docker/travis/Dockerfile Dockerfile
docker build -t rucio/rucio .

elif [[ SUITE == 'python3' ]]; then
elif [[ $SUITE == 'python3' ]]; then
pip install -r tools/pip-requires-test

fi

0 comments on commit 9db6621

Please sign in to comment.