Skip to content

Commit

Permalink
Merge pull request #477 from jbouffard/feature/test-script
Browse files Browse the repository at this point in the history
Separate Testing for Each Test on Travis
  • Loading branch information
Jacob Bouffard committed Aug 15, 2017
2 parents c8c4783 + 9977ac6 commit b9331e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,5 @@ cache:
script:
- export SPARK_HOME=./spark-2.1.1-bin-hadoop2.7/
- export JAVA_HOME=/usr/lib/jvm/java-8-oracle
- pytest -k "schema" geopyspark/tests/schema_tests/
- pytest -k "tiled_layer" geopyspark/tests/tiled_layer_tests/
- pytest -k "io" geopyspark/tests/io_tests/
- pytest -k "not schema" -k "not tiled_layer" -k "not io" geopyspark/tests/*test.py
- ./test_script.sh
- pylint geopyspark
9 changes: 9 additions & 0 deletions test_script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

testpath="geopyspark/tests/"
testpattern="*_test.py"

for f in $testpath$testpattern $testpath/**/$testpattern;
do
pytest $f
done

0 comments on commit b9331e3

Please sign in to comment.