stronk7

Untitled

Jun 4th, 2020
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. $ cat cirunner
  2. #!/opt/local/bin/bash
  3.  
  4. export WORKSPACE=/tmp/ws
  5. export CODEDIR=/Users/stronk7/git_moodle/ci-tests
  6. export BUILD_ID=cirunner
  7.  
  8. export PHP_VERSION=7.3
  9.  
  10. export DBTYPE=${DBTYPE:-pgsql}
  11.  
  12. export TESTTORUN=${TESTTORUN:-behat}
  13.  
  14. if [[ "$TESTTORUN" == "phpunit" ]]; then
  15. export TESTSUITE=${TESTSUITE:-}
  16. export TAGS=${TAGS:-}
  17. elif [[ "$TESTTORUN" == "behat" ]]; then
  18. export BEHAT_TOTAL_RUNS=${BEHAT_TOTAL_RUNS:-1}
  19. export BEHAT_NUM_RERUNS=${BEHAT_NUM_RERUNS:-5}
  20. export APP_VERSION=${APP_VERSION:-latest}
  21. export BROWSER=${BROWSER:-chrome}
  22. export BEHAT_SUITE=default
  23. export TAGS=${TAGS:-@app}
  24. export NAME="${NAME:-}"
  25. elif [[ "$TESTTORUN" == "postcommit" ]]; then
  26. echo "mande!"
  27. fi
  28.  
  29. # Remove stuff that should not be there
  30. rm -fr ${CODEDIR}/vendor ${CODEDIR}/node_modules
  31.  
  32. # Create the workspace dir to put results
  33. mkdir -p "${WORKSPACE}"
  34.  
  35. . /Users/stronk7/git_moodle/moodle-ci-runner/runner/master/run.sh
Advertisement
Add Comment
Please, Sign In to add comment