Files
MapLibreParticleLab/scripts/node/run.sh
2015-09-04 10:52:14 -07:00

35 lines
817 B
Bash
Executable File

#!/usr/bin/env bash
set -e
set -o pipefail
source ./scripts/${TRAVIS_OS_NAME}/setup.sh
BUILDTYPE=${BUILDTYPE:-Release}
################################################################################
# Build
################################################################################
source ~/.nvm/nvm.sh
nvm use $NODE_VERSION
mapbox_time "checkout_styles" \
git submodule update --init styles
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