2017-01-11 18:52:51 +03:00
|
|
|
---
|
|
|
|
language: node_js
|
|
|
|
node_js:
|
|
|
|
- 4
|
2017-02-07 20:46:39 +03:00
|
|
|
- stable
|
2017-01-11 18:52:51 +03:00
|
|
|
cache:
|
2017-03-16 06:23:03 +03:00
|
|
|
yarn: true
|
2017-01-11 18:52:51 +03:00
|
|
|
directories:
|
2018-01-12 19:19:20 +03:00
|
|
|
- node_modules
|
2017-06-18 02:37:51 +03:00
|
|
|
env:
|
|
|
|
- NODE_ENV=development
|
|
|
|
- NODE_ENV=production
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
install:
|
2017-09-29 10:34:47 +03:00
|
|
|
- NODE_ENV=development yarn install
|
2017-06-18 02:37:51 +03:00
|
|
|
before_script:
|
2017-11-07 06:39:07 +03:00
|
|
|
- yarn check-deps
|
2017-06-18 02:37:51 +03:00
|
|
|
- if [ "${NODE_ENV}" = "production" ]; then yarn build; fi
|
2017-05-21 21:00:16 +03:00
|
|
|
script:
|
2017-05-21 22:11:09 +03:00
|
|
|
- yarn lint
|
2017-11-22 14:27:40 +03:00
|
|
|
- yarn lint-docs
|
2018-01-12 19:19:20 +03:00
|
|
|
- if [ "${NODE_ENV}" = "production" ]; then yarn test:dist; fi
|
|
|
|
- if [ "${NODE_ENV}" = "development" ]; then AST_COMPARE=1 yarn test -- --runInBand; fi
|
2017-07-16 14:49:37 +03:00
|
|
|
- if [ "${NODE_ENV}" = "development" ]; then yarn codecov; fi
|
2018-01-12 19:19:20 +03:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|