Move platform scripts into platforms

This commit is contained in:
John Firebaugh
2015-12-16 14:05:23 -08:00
parent a903d2eef0
commit 7a4e7376e1
46 changed files with 40 additions and 40 deletions

31
platform/node/scripts/run.sh Executable file
View File

@@ -0,0 +1,31 @@
#!/usr/bin/env bash
set -e
set -o pipefail
source ./platform/${TRAVIS_OS_NAME}/scripts/setup.sh
BUILDTYPE=${BUILDTYPE:-Release}
################################################################################
# Build
################################################################################
source ~/.nvm/nvm.sh
nvm use $NODE_VERSION
mapbox_time "compile_program" \
npm install --build-from-source
################################################################################
# Test
################################################################################
# Travis OS X has no GPU
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
mapbox_time "run_tests" \
npm test
mapbox_time "run_render_tests" \
npm run test-suite
fi