diff --git a/.gitignore b/.gitignore index 6cee33ee..34a968c1 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,5 @@ test_project /test/ /results.tap + +/report.tap diff --git a/run-tests.sh b/run-tests.sh old mode 100644 new mode 100755 index 9a21c9e5..5cf739e2 --- a/run-tests.sh +++ b/run-tests.sh @@ -17,8 +17,19 @@ if [[ ! -z "$CI" ]]; then export RAM_DISK echo "Installing Pipenv…" + pip install -e . --upgrade --upgrade-strategy=only-if-needed pipenv install --deploy --system --dev + +else + + echo "Using RAM disk (assuming MacOS)…" + diskutil erasevolume HFS+ 'RAMDisk' $(hdiutil attach -nomount ram://8388608) + + RAM_DISK="/Volumes/RAMDisk" + export RAM_DISK + + pipenv install --dev fi -pipenv run time pytest -v -n auto tests -m "$TEST_SUITE" --tap-stream \ No newline at end of file +pipenv run time pytest -v -n auto tests -m "$TEST_SUITE" --tap-stream | tee report.tap \ No newline at end of file