build-sm-package.sh 715 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. set -xe
  3. source $(dirname $0)/sm-tooltool-config.sh
  4. mkdir -p $UPLOAD_DIR
  5. # Package up the sources into the release tarball.
  6. AUTOMATION=1 DIST=$UPLOAD_DIR $SRCDIR/js/src/make-source-package.sh
  7. # Extract the tarball into a new directory in the workspace.
  8. PACKAGE_DIR=$WORK/sm-package
  9. mkdir -p $PACKAGE_DIR
  10. pushd $PACKAGE_DIR
  11. tar -xjvf $UPLOAD_DIR/mozjs-*.tar.bz2
  12. : ${PYTHON:=python2.7}
  13. # Build the freshly extracted, packaged SpiderMonkey.
  14. pushd ./mozjs-*/js/src
  15. AUTOMATION=1 $PYTHON ./devtools/automation/autospider.py --skip-tests=checks $SPIDERMONKEY_VARIANT
  16. popd
  17. # Copy artifacts for upload by TaskCluster
  18. cp -rL ./mozjs-*/obj-spider/dist/bin/{js,jsapi-tests,js-gdb.py,libmozjs*} $UPLOAD_DIR