endtoend-build 653 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env bash
  2. set -o pipefail
  3. set -o errexit
  4. set -o nounset
  5. set -o xtrace
  6. # Set magic variables for current file & dir
  7. __dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
  8. __file="${__dir}/$(basename "${BASH_SOURCE[0]}")"
  9. __base="$(basename ${__file} .sh)"
  10. __root="$(cd "$(dirname "${__dir}")" && pwd)"
  11. echo "Preparing for end to end test: copying static HTML and CSS, building JS"
  12. rm -rf "${__root}/test/endtoend/node_modules"
  13. npm run build
  14. # Allow integration tests to resolve @uppy packages
  15. ln -s "${__root}/packages" "${__root}/test/endtoend/node_modules"
  16. bash "${__dir}/endtoend-build-tests"
  17. rm "${__root}/test/endtoend/node_modules"