ant-design/.travis.yml

38 lines
893 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:
2017-10-23 10:01:13 +08:00
- "8.5"
env:
2017-03-09 20:58:07 +08:00
matrix:
- TEST_TYPE=lint
2017-10-23 16:24:17 +08:00
- TEST_TYPE=test:dist
- TEST_TYPE=test:lib
- TEST_TYPE=test:es
2017-03-09 20:58:07 +08:00
- 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
2017-10-23 16:24:17 +08:00
elif [ "$TEST_TYPE" = test:dist ]; then
2017-03-09 20:58:07 +08:00
npm run dist && \
2017-07-03 18:01:31 +08:00
node ./tests/dekko/dist.test.js && \
2017-10-23 16:24:17 +08:00
LIB_DIR=dist npm test -- -w 2
elif [ "$TEST_TYPE" = test:lib ]; then
2017-03-09 20:58:07 +08:00
npm run compile && \
2017-07-03 18:01:31 +08:00
node ./tests/dekko/lib.test.js && \
2017-10-23 16:24:17 +08:00
LIB_DIR=lib npm test -- -w 2
elif [ "$TEST_TYPE" = test:es ]; then
npm run compile && \
LIB_DIR=es npm test -- -w 2
2017-03-13 12:52:22 +08:00
elif [ "$TEST_TYPE" = test:dom ]; then
2017-03-09 20:58:07 +08:00
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-06-30 15:29:28 +08:00
npm run test-node -- -w 2
2017-03-09 20:58:07 +08:00
fi