atst/script/cibuild
dandds 3457f51d99 CI script should fail hard.
Right now, unit test failures in script/cibuild are not being emitted
correctly. Instead, we'll just `set -e` at the top of the CI script so
that failures are fast and obvious.
2019-12-16 11:04:57 -05:00

25 lines
522 B
Bash
Executable File

#!/bin/bash
set -e
# 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"
# Enable Javascript testing
RUN_JS_TESTS="true"
# Check python formatting
source ./script/format check
# Run the shared test script
source ./script/include/run_test