mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
* 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.
24 lines
509 B
YAML
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
|