Skip to content

Commit 0c4e7e1

Browse files
authored
fix(build): Don't build packages we're not going to test (#3059)
Only applies to Node 6 and 8 tests.
1 parent ac8c9b5 commit 0c4e7e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -le 6 ]]; then
77
nvm use 8
88
yarn install --ignore-engines --ignore-scripts
99
# ember requires Node >= 10 to build
10-
yarn build --ignore="@sentry/ember" --ignore="@sentry/serverless"
10+
yarn build --ignore="@sentry/ember" --ignore="@sentry/serverless" --ignore="@sentry/gatsby" --ignore="@sentry/react"
1111
nvm use 6
1212
# browser can be tested only on Node >= v8 because Karma is not supporting anything older
1313
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"
1414
elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -le 8 ]]; then
1515
yarn install --ignore-engines --ignore-scripts
1616
# ember requires Node >= 10 to build
17-
yarn build --ignore="@sentry/ember" --ignore="@sentry/serverless"
17+
yarn build --ignore="@sentry/ember" --ignore="@sentry/serverless" --ignore="@sentry/gatsby" --ignore="@sentry/react"
1818
# serverless, tracing, ember and react work only on Node >= v10
1919
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"
2020
else

0 commit comments

Comments
 (0)