Skip to content

Commit

Permalink
Clean up *.pyc files when running the tests
Browse files Browse the repository at this point in the history
The older versions of python create filename.pyc files
rather than __pycache__ folders. Clean those up as well
to hopefully make the build more reliable.
  • Loading branch information
byrney committed Jul 11, 2018
1 parent ee1ba8f commit ccb7464
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ run_stats(){
}

clean(){
echo -n "Cleaning the site, build, dist and all __pycache__directories..."
echo -n "Cleaning the site, build, dist, *.pyc and all __pycache__directories..."
find gitlint -type d -name "*.pyc" -exec rm -rf {} \; 2> /dev/null
find qa -type d -name "*.pyc" -exec rm -rf {} \; 2> /dev/null
find gitlint -type d -name "__pycache__" -exec rm -rf {} \; 2> /dev/null
find qa -type d -name "__pycache__" -exec rm -rf {} \; 2> /dev/null
rm -rf "site" "dist" "build"
Expand Down

0 comments on commit ccb7464

Please # to comment.