Files
test-repo/.travis.yml
T

38 lines
557 B
YAML
Raw Normal View History

2017-01-11 15:52:51 +00:00
---
language: node_js
2018-05-18 00:58:37 -03:00
2017-01-11 15:52:51 +00:00
node_js:
2018-05-18 00:58:37 -03:00
- node
2018-05-24 15:49:57 -03:00
- "6"
2018-05-18 00:58:37 -03:00
2017-01-11 15:52:51 +00:00
cache:
2017-03-15 21:23:03 -06:00
yarn: true
2017-01-11 15:52:51 +00:00
directories:
2018-01-13 03:19:20 +11:00
- node_modules
2018-05-18 00:58:37 -03:00
2017-06-17 19:37:51 -04:00
env:
2018-05-18 00:58:37 -03:00
global:
- NODE_ENV=development
matrix:
- JOB=test AST_COMPARE=1
2017-06-17 19:37:51 -04:00
matrix:
fast_finish: true
2018-05-18 00:58:37 -03:00
include:
- node_js: "node"
env: JOB=lint
2017-06-17 19:37:51 -04:00
install:
2018-05-18 00:58:37 -03:00
- yarn install
2017-06-17 19:37:51 -04:00
before_script:
2017-11-07 14:39:07 +11:00
- yarn check-deps
2018-05-18 00:58:37 -03:00
script:
2018-05-18 00:58:37 -03:00
- if [ "${JOB}" = "lint" ]; then yarn lint && yarn lint-docs; fi
2018-05-18 15:00:05 -03:00
- if [ "${JOB}" = "test" ]; then yarn test --runInBand --ci; fi
2018-05-18 00:58:37 -03:00
- if [ "${JOB}" = "test" ]; then yarn codecov; fi
2018-01-13 03:19:20 +11:00
branches:
only:
- master