summaryrefslogtreecommitdiff
path: root/platform/node/scripts/run.sh
blob: fdebaaeb9435a05f4e783bac78731553690cec12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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
npm install --build-from-source

################################################################################
# Test
################################################################################

# https://github.com/mapbox/mapbox-gl-native/issues/2150
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
    npm test
    npm run test-suite
fi