test 391 B

123456789101112131415161718
  1. #!/bin/bash
  2. # Move into a known directory
  3. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  4. cd ${DIR}/..
  5. npm run phantom-test -s
  6. result=$?
  7. if [ "$result" = 0 ]; then
  8. if [ "${CI}" = "true" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
  9. npm run zuul-test -s
  10. result=$?
  11. else
  12. echo "Skipping zuul-test as this is not a master CI branch test run"
  13. fi
  14. fi
  15. exit ${result}