#!/bin/bash

# script/cibuild: Run CI related checks and tests

source "$(dirname "${0}")"/../script/include/global_header.inc.sh

# Run lint/style checks and unit tests
export FLASK_ENV=ci

# Define all relevant python files and directories for this app
PYTHON_FILES="./app.py ./atst/** ./config"

# Enable Python testing
RUN_PYTHON_TESTS="true"

# Reset the DB, since the one script/setup created might not be persisted
RESET_DB="true"

# Check python formatting
source ./script/format check

# Run the shared test script
source ./script/include/run_test
