Skip to main content
Module

x/sentry/scripts/test.sh

Official Sentry SDKs for Javascript
Go to Latest
File
#!/bin/bashset -esource ~/.nvm/nvm.sh
# We need this check to skip engines check for typescript-tslint-plugin packageif [[ "$(cut -d. -f1 <<< "$NODE_VERSION")" -le 6 ]]; then nvm install 8 nvm use 8 yarn install --ignore-engines --ignore-scripts # current versions of nock don't support node 6 cd packages/node yarn add --dev --ignore-engines nock@10.x cd ../.. # ember requires Node >= 10 to build yarn build --ignore="@sentry/ember" --ignore="@sentry/serverless" --ignore="@sentry/gatsby" --ignore="@sentry/react" nvm install 6 nvm use 6 # browser can be tested only on Node >= v8 because Karma is not supporting anything older yarn test --ignore="@sentry/tracing" --ignore="@sentry/react" --ignore="@sentry/gatsby" --ignore="@sentry/ember" --ignore="@sentry-internal/eslint-plugin-sdk" --ignore="@sentry-internal/eslint-config-sdk" --ignore="@sentry/serverless" --ignore="@sentry/browser" --ignore="@sentry/integrations" elif [[ "$(cut -d. -f1 <<< "$NODE_VERSION")" -le 8 ]]; then yarn install --ignore-engines --ignore-scripts # ember requires Node >= 10 to build yarn build --ignore="@sentry/ember" --ignore="@sentry/serverless" --ignore="@sentry/gatsby" --ignore="@sentry/react" # serverless, tracing, ember and react work only on Node >= v10 yarn test --ignore="@sentry/tracing" --ignore="@sentry/react" --ignore="@sentry/gatsby" --ignore="@sentry/ember" --ignore="@sentry-internal/eslint-plugin-sdk" --ignore="@sentry-internal/eslint-config-sdk" --ignore="@sentry/serverless"else yarn install yarn build yarn testfi