[node] publish Node.js Linux binaries with GLX

run test suite with OSMesa in Debug
This commit is contained in:
Mike Morris
2016-11-14 13:36:57 -05:00
parent 1d80be00df
commit f50de16260
4 changed files with 44 additions and 23 deletions

View File

@@ -5,19 +5,10 @@ set -o pipefail
JOB=$1
if [[ -n ${PUBLISH:-} ]]; then
if [[ "${BUILDTYPE}" == "Debug" ]]; then
echo "Please run this script in release mode (BUILDTYPE=Release)."
exit 1
else
./node_modules/.bin/node-pre-gyp package publish info
fi
else
if [ ! -z "${AWS_ACCESS_KEY_ID}" ] && [ ! -z "${AWS_SECRET_ACCESS_KEY}" ] ; then
gzip --stdout node_modules/mapbox-gl-test-suite/render-tests/index.html | \
aws s3 cp --acl public-read --content-encoding gzip --content-type text/html \
- s3://mapbox/mapbox-gl-native/render-tests/$JOB/index.html
if [ ! -z "${AWS_ACCESS_KEY_ID}" ] && [ ! -z "${AWS_SECRET_ACCESS_KEY}" ] ; then
gzip --stdout node_modules/mapbox-gl-test-suite/render-tests/index.html | \
aws s3 cp --acl public-read --content-encoding gzip --content-type text/html \
- s3://mapbox/mapbox-gl-native/render-tests/$JOB/index.html
echo http://mapbox.s3.amazonaws.com/mapbox-gl-native/render-tests/$JOB/index.html
fi
echo http://mapbox.s3.amazonaws.com/mapbox-gl-native/render-tests/$JOB/index.html
fi

View File

@@ -0,0 +1,13 @@
#!/bin/bash
set -e
set -o pipefail
if [[ -n ${PUBLISH:-} ]]; then
if [[ "${BUILDTYPE}" == "Debug" ]]; then
echo "Please run this script in release mode (BUILDTYPE=Release)."
exit 1
else
./node_modules/.bin/node-pre-gyp package publish info
fi
fi