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 641f558
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 111 deletions.
6 changes: 3 additions & 3 deletions tools/travis/check_python_3.sh
Expand Up @@ -20,16 +20,16 @@ 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
107 changes: 0 additions & 107 deletions tools/travis/py3_compatible.txt

This file was deleted.

0 comments on commit 641f558

Please sign in to comment.