Files
test-repo/.travis.yml
T
Lucas Azzola dd78f31aaf Run production tests on npm package (#3730)
* Run production tests on npm package

* Put back fast finish
2018-01-13 03:19:20 +11:00

29 lines
618 B
YAML

---
language: node_js
node_js:
- 4
- stable
cache:
yarn: true
directories:
- node_modules
env:
- NODE_ENV=development
- NODE_ENV=production
matrix:
fast_finish: true
install:
- NODE_ENV=development yarn install
before_script:
- yarn check-deps
- if [ "${NODE_ENV}" = "production" ]; then yarn build; fi
script:
- yarn lint
- yarn lint-docs
- if [ "${NODE_ENV}" = "production" ]; then yarn test:dist; fi
- if [ "${NODE_ENV}" = "development" ]; then AST_COMPARE=1 yarn test -- --runInBand; fi
- if [ "${NODE_ENV}" = "development" ]; then yarn codecov; fi
branches:
only:
- master