Commit 11edf01e authored by André Anjos's avatar André Anjos 💬
Browse files

[ci] Add scripts for build management using the same strategy as for other packages

parent 4503f8cf
#!/usr/bin/env bash
source _ci/functions.sh
BEAT_TEST_PREFIX=`cat $TEST_PREFIX_PATH_FILE`
export_env BEAT_TEST_PREFIX
log_info "Deleting BEAT test prefix $BEAT_TEST_PREFIX"
run_cmd rm -rf ${BEAT_TEST_PREFIX} ${TEST_PREFIX_PATH_FILE}
#!/usr/bin/env bash
source _ci/functions.sh
# Makes sure we activate the base environment if available
run_cmd source ${CONDA_ROOT}/etc/profile.d/conda.sh
run_cmd conda activate base
export_env PATH
# installs the base conda environment
run_cmd conda create -f dev.yml
conda activate beat-web
# runs buildout
run_cmd buildout
# pulls required docker images and compiles
run_cmd ./src/beat.core/scripts/before_test.sh build
#!/usr/bin/env bash
source _ci/functions.sh
# Makes sure we activate the base environment if available
run_cmd source ${CONDA_ROOT}/etc/profile.d/conda.sh
run_cmd conda activate beat-web
export_env PATH
COVERAGE_FILE=.coverage.django
export_env COVERAGE_FILE
run_cmd ./bin/coverage run --source=${CI_PROJECT_NAME} ./bin/django test --settings=beat.web.settings.ci -v 2
BEAT_CMDLINE_TEST_PLATFORM=django://beat.web.settings.ci
COVERAGE_FILE=.coverage.cmdline
NOSE_WITH_COVERAGE=1
NOSE_COVER_PACKAGE=beat.web
export_env BEAT_CMDLINE_TEST_PLATFORM
export_env COVERAGE_FILE
export_env NOSE_WITH_COVERAGE
export_env NOSE_COVER_PACKAGE
run_cmd ./bin/coverage run --source=./src/beat.cmdline ./bin/nosetests -sv beat.cmdline
unset COVERAGE_FILE
run_cmd ./bin/coverage combine .coverage.django .coverage.cmdline
run_cmd ./bin/coverage report
run_cmd ./bin/sphinx-apidoc --separate -d 2 --output=doc/api ${CI_PROJECT_NAMESPACE} beat/web/*/migrations beat/web/*/tests
run_cmd ./bin/sphinx-build doc/api html/api
run_cmd ./bin/sphinx-build doc/admin html/admin
run_cmd ./bin/sphinx-build doc/user html/user
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment