From 4f21c39be58cec56cd543a98998f069984dbb96f Mon Sep 17 00:00:00 2001 From: Patrick Smith Date: Fri, 3 Aug 2018 11:35:10 -0400 Subject: [PATCH] Run tests on CI with the CI env --- script/cibuild | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/script/cibuild b/script/cibuild index e9d01564..24b7a705 100755 --- a/script/cibuild +++ b/script/cibuild @@ -5,4 +5,16 @@ source "$(dirname "${0}")"/../script/include/global_header.inc.sh # Run lint/style checks and unit tests -source ./script/test +export FLASK_ENV=ci + +# Enable database resetting +RESET_DB="true" + +# Define all relevant python files and directories for this app +PYTHON_FILES="./app.py ./atst ./config" + +# Enable Python testing +RUN_PYTHON_TESTS="true" + +# Run the shared test script +source ./script/include/run_test