Commit 9dd0792a authored by André Anjos's avatar André Anjos 💬

Add script for local testing

parent 067cef3e
#!/usr/bin/env bash
# Runs the CI build instructions on your local machine, for tests
# The aim of this script is to serve as basis for testing the CI system without
# actually incurring in builds. You may help yourself by modifying it for
# different purposes
export PYTHON_VERSION=3.6
export CI_PROJECT_URL=https://gitlab.idiap.ch/beat/beat.core
export CI_PROJECT_DIR=beat
export CI_PROJECT_PATH=beat/beat.core
export CI_PROJECT_NAME=beat.core
export CI_COMMIT_REF_NAME=master
export PYPIUSER=pypiuser
export PYPIPASS=pypipass
export DOCUSER=docuser
export DOCPASS=docpass
export CONDA_ROOT=${PWD}/miniconda
export DOCSERVER=https://www.idiap.ch/software/bob
# Build stage
mkdir _ci
curl --silent "https://gitlab.idiap.ch/bob/bob.admin/raw/master/gitlab/install.sh" > _ci/install.sh
chmod 755 _ci/install.sh
./_ci/install.sh _ci master #installs ci support scripts
sed -i '~' -e 's;public/;;g' _ci/functions.sh
./_ci/before_build.sh
./_ci/build.sh
./_ci/after_build.sh
# Docker-based Test stage
mv ${CONDA_ROOT}/conda-bld .
./_ci/before_build.sh
mv conda-bld ${CONDA_ROOT}
./scripts/before_test.sh
BOB_TEST_ONLY=true
export BEAT_DOCKER_TESTS=true
./_ci/build.sh
./_ci/after_build.sh
Markdown is supported
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