Adding a pre-test check that looks for java files in the test/scala d… #857
Merged
Commits
Jump to file or symbol
Failed to load files and symbols.
| @@ -0,0 +1,17 @@ | ||
| +#/bin/bash | ||
| + | ||
| +# Check that Scala files only exist in the scala test dir and | ||
| +# that java files do not reside in the scala test dir | ||
| + | ||
| +if `find src | grep -v '^src/test/scala' | grep -q '\.scala$' ` ; then | ||
| + echo 'Found scala file(s) outside of scala test directory'; | ||
| + find src | grep -v '^src/test/scala' | grep '\.scala$' | ||
| + exit 1; | ||
| +fi | ||
| + | ||
| +if `find src/test/scala | grep -q '\.java$' ` ; then | ||
| + echo 'Found java file(s) in scala test directory'; | ||
| + find src/test/scala | grep '\.java$' | ||
| + exit 1; | ||
| +fi | ||
| + |