ant-design/.travis.yml

33 lines
711 B
YAML
Raw Normal View History

2016-03-03 15:52:12 +08:00
sudo: false
2015-06-08 20:12:49 +08:00
language: node_js
node_js:
2016-10-25 14:45:23 +08:00
- "6"
env:
2017-03-09 20:58:07 +08:00
matrix:
- TEST_TYPE=lint
- TEST_TYPE=dist
- TEST_TYPE=compile
- TEST_TYPE=test:dom
- TEST_TYPE=test:node
script:
2017-03-09 20:58:07 +08:00
- |
if [ "$TEST_TYPE" = lint ]; then
npm run lint
elif [ "$TEST_TYPE" = dist ]; then
npm run dist && \
node ./tests/dekko/dist.test.js
elif [ "$TEST_TYPE" = compile ]; then
npm run compile && \
node ./tests/dekko/lib.test.js
2017-03-13 12:52:22 +08:00
elif [ "$TEST_TYPE" = test:dom ]; then
2017-03-09 20:58:07 +08:00
npm run dist && \
npm test -- --coverage -w 2 && \
bash <(curl -s https://codecov.io/bash)
2017-03-13 12:52:22 +08:00
elif [ "$TEST_TYPE" = test:node ]; then
2017-03-09 20:58:07 +08:00
npm test -- --config .jest.node.json -w 2
fi