Skip to content

Commit 2c3c852

Browse files
harrysarsonjosdejong
authored andcommitted
Only one job for browser tests on travis (josdejong#1594)
* only one job for browser tests on travis Only run local tests in pull requests and only run browser tests when running in a branch. Should speed up ci runs slightly. * let travis do default caching See: https://docs.travis-ci.com/user/languages/javascript-with-nodejs/#caching-with-npm * do not do anything fancy with git Simpler config is better provided it does not slow down ci. * Revert "do not do anything fancy with git" - to time ci This reverts commit 543dc3a. * Revert "Revert "do not do anything fancy with git" - to time ci" - enough of this hokie cokie This reverts commit 718c351.
1 parent 5362108 commit 2c3c852

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.travis.yml

+2-11
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,12 @@ jobs:
1212
script: npm run lint
1313
node_js: lts/*
1414
name: Lint
15-
- script: npm run test:browser
15+
- script: 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run test:browserstack; else npm run test:browser; fi'
1616
node_js: lts/*
17-
name: Local Browser Test
18-
- script: 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run test:browserstack; else true; fi'
19-
node_js: lts/*
20-
name: Browserstack Test
17+
name: Browser Test
2118
- script: npm run build-and-test
2219
node_js: lts/*
2320
name: Build Test
2421
- script: npm run coverage && npx codecov
2522
node_js: lts/*
2623
name: Coverage
27-
git:
28-
depth: 5
29-
30-
cache:
31-
directories:
32-
- node_modules

0 commit comments

Comments
 (0)