Skip to content

Commit

Permalink
don't run unit tests on netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
tjenkinson committed Jun 19, 2020
1 parent f12d5c4 commit 5cf997d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/set-package-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ try {
if (TRAVIS_MODE === 'netlifyPr') {
newVersion += `-pr.${getCommitHash().substr(0, 8)}`;
} else if (TRAVIS_MODE === 'netlifyBranch') {
newVersion += `-branch-${process.env.BRANCH /* set by netlify */}.${getCommitHash().substr(0, 8)}`;
newVersion += `-branch.${process.env.BRANCH /* set by netlify */}.${getCommitHash().substr(0, 8)}`;
} else {
newVersion += `-canary.${getCommitNum()}`;
}
Expand Down
4 changes: 3 additions & 1 deletion scripts/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ elif [ "${TRAVIS_MODE}" = "release" ] || [ "${TRAVIS_MODE}" = "releaseCanary" ]
npm run lint
npm run type-check
npm run build:ci
npm run test:unit

if [ "${TRAVIS_MODE}" = "release" ] || [ "${TRAVIS_MODE}" = "releaseCanary" ]; then
# unit tests don't work on netlify because they need chrome
npm run test:unit

if [[ $(node ./scripts/check-already-published.js) = "not published" ]]; then
# write the token to config
# see https://docs.npmjs.com/private-modules/ci-server-config
Expand Down

0 comments on commit 5cf997d

Please sign in to comment.