Skip to content

Commit d955559

Browse files
committed
build: Restore ember build/test on travis
1 parent 7a097b4 commit d955559

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

scripts/test.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@ source ~/.nvm/nvm.sh
66
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -le 6 ]]; then
77
nvm use 8
88
yarn install --ignore-engines --ignore-scripts
9+
# ember requires Node >= 10 to build
910
yarn build --ignore="@sentry/ember"
1011
nvm use 6
11-
yarn test --ignore="@sentry/browser" --ignore="@sentry/integrations" --ignore="@sentry/react" --ignore="@sentry/ember" --ignore="@sentry/tracing" # latest version of karma doesn't run on node 6
12+
# browser can be tested only on Node >= v8 because Karma is not supporting anything older
13+
yarn test --ignore="@sentry/browser" --ignore="@sentry/integrations" --ignore="@sentry/react" --ignore="@sentry/ember" --ignore="@sentry/tracing"
1214
elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -le 8 ]]; then
1315
yarn install --ignore-engines --ignore-scripts
16+
# ember requires Node >= 10 to build
1417
yarn build --ignore="@sentry/ember"
18+
# tracing, ember and react work only on Node >= v10
1519
yarn test --ignore="@sentry/tracing" --ignore="@sentry/react" --ignore="@sentry/ember"
1620
else
1721
yarn install
18-
yarn build --ignore="@sentry/ember"
19-
yarn test --ignore="@sentry/ember"
22+
yarn build
23+
yarn test
2024
fi

0 commit comments

Comments
 (0)