Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat cirunner
- #!/opt/local/bin/bash
- export WORKSPACE=/tmp/ws
- export CODEDIR=/Users/stronk7/git_moodle/ci-tests
- export BUILD_ID=cirunner
- export PHP_VERSION=7.3
- export DBTYPE=${DBTYPE:-pgsql}
- export TESTTORUN=${TESTTORUN:-behat}
- if [[ "$TESTTORUN" == "phpunit" ]]; then
- export TESTSUITE=${TESTSUITE:-}
- export TAGS=${TAGS:-}
- elif [[ "$TESTTORUN" == "behat" ]]; then
- export BEHAT_TOTAL_RUNS=${BEHAT_TOTAL_RUNS:-1}
- export BEHAT_NUM_RERUNS=${BEHAT_NUM_RERUNS:-5}
- export APP_VERSION=${APP_VERSION:-latest}
- export BROWSER=${BROWSER:-chrome}
- export BEHAT_SUITE=default
- export TAGS=${TAGS:-@app}
- export NAME="${NAME:-}"
- elif [[ "$TESTTORUN" == "postcommit" ]]; then
- echo "mande!"
- fi
- # Remove stuff that should not be there
- rm -fr ${CODEDIR}/vendor ${CODEDIR}/node_modules
- # Create the workspace dir to put results
- mkdir -p "${WORKSPACE}"
- . /Users/stronk7/git_moodle/moodle-ci-runner/runner/master/run.sh
Advertisement
Add Comment
Please, Sign In to add comment