move node-mbgl to platform/node/ directory

This commit is contained in:
Mike Morris
2015-08-21 15:53:24 -04:00
parent a8d9b921d7
commit 6e6387e089
39 changed files with 0 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -e
set -o pipefail
if [ ! -z "${AWS_ACCESS_KEY_ID}" ] && [ ! -z "${AWS_SECRET_ACCESS_KEY}" ] ; then
# Install and add awscli to PATH for uploading the results
mapbox_time "install_awscli" \
pip install --user awscli
export PATH="`python -m site --user-base`/bin:${PATH}"
mapbox_time_start "deploy_results"
(cd ./node_modules/mapbox-gl-test-suite/ && ./bin/deploy_results.sh)
mapbox_time_finish
fi

View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -e
set -o pipefail
# Mason exists on PATH from sourcing mbgl install script
mapbox_time $NODE_EXE \
mason install $NODE_EXE $NODE_VERSION
export PATH="`mason prefix $NODE_EXE $NODE_VERSION`/bin":"$PATH"
$NODE_EXE --version
npm --version

View File

@@ -0,0 +1,31 @@
#!/bin/bash
set -e
# Inspect binary.
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
ldd ./lib/mapbox-gl-native.node
else
otool -L ./lib/mapbox-gl-native.node
fi
COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n')
if test "${COMMIT_MESSAGE#*'[publish binary]'}" != "$COMMIT_MESSAGE" && [[ $CXX =~ ^clang* ]]; then
npm install aws-sdk
./node_modules/.bin/node-pre-gyp package
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
./node_modules/.bin/node-pre-gyp testpackage
fi
./node_modules/.bin/node-pre-gyp publish info
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
rm -rf build
rm -rf lib
npm install --fallback-to-build=false
npm test
fi
fi

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e
set -o pipefail
# Travis OS X has no GPU
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
npm test
./scripts/deploy_results.sh
fi