test 389 B

1234567891011121314151617181920
  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 ];
  8. then
  9. if [ "${CI}" = "true" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ];
  10. then
  11. npm run zuul-test -s
  12. result=$?
  13. else
  14. echo "Skipping zuul-test as this is not a master CI branch test run"
  15. fi
  16. fi
  17. exit $result