mathjs/.travis.yml

33 lines
643 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: npm run test:browser
node_js: lts/*
name: Local Browser Test
- script: 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run test:browserstack; else true; fi'
node_js: lts/*
name: Browserstack Test
- script: npm run build-and-test
node_js: lts/*
name: Build Test
- script: npm run coverage && npx codecov
node_js: lts/*
name: Coverage
git:
depth: 5
cache:
directories:
- node_modules