mathjs/.travis.yml
Harry Sarson 2c3c8529c7 Only one job for browser tests on travis (#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 543dc3a6ed52004b22f41d0a999819dfa24742e8.

* Revert "Revert "do not do anything fancy with git" - to time ci" -
enough of this hokie cokie

This reverts commit 718c3514ea2413bc2cd9d29a26b20e658f852ae2.
2019-08-17 17:44:50 +02:00

24 lines
509 B
YAML

language: node_js
node_js:
- 8
- 10
- 12
script: npm run test:src
jobs:
include:
- stage: other
script: npm run lint
node_js: lts/*
name: Lint
- script: 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run test:browserstack; else npm run test:browser; fi'
node_js: lts/*
name: Browser Test
- script: npm run build-and-test
node_js: lts/*
name: Build Test
- script: npm run coverage && npx codecov
node_js: lts/*
name: Coverage