forked from ant-design/ant-design-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (33 loc) · 771 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
sudo: false
git:
submodules: false
language: node_js
notifications:
email:
- hust2012jiangkai@gmail.com
- hualei5280@gmail.com
- zhang740@qq.com
- rjmuqiang@gmail.com
node_js:
- "8"
env:
matrix:
- TEST_TYPE=lint
- TEST_TYPE=dist
- TEST_TYPE=compile
- TEST_TYPE=test
script:
- |
if [ "$TEST_TYPE" = lint ]; then
npm run lint
elif [ "$TEST_TYPE" = dist ]; then
npm run dist && \
LIB_DIR=dist npm run test -- -w 2
elif [ "$TEST_TYPE" = compile ]; then
npm run compile && \
LIB_DIR=lib npm run test -- -w 2 && \
LIB_DIR=es npm run test -- -w 2
elif [ "$TEST_TYPE" = test ]; then
npm run test -- -w 2 --coverage && \
bash <(curl -s https://codecov.io/bash) -cF web
fi