travis.sh 236 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. set -e
  3. readonly thisDir=$(cd $(dirname $0); pwd)
  4. cd ${thisDir}
  5. if [[ "${MODE}" ]]; then
  6. echo ""
  7. echo "Running mode: ${MODE}"
  8. echo ""
  9. npm run ${MODE}
  10. elif [[ "${DEPLOY_MODE}" ]]; then
  11. ./deploy.sh -gh -dr
  12. fi