forked from ant-design/ant-design-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (36 loc) · 979 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
40
41
42
sudo: false
git:
submodules: false
language: node_js
notifications:
email:
node_js:
- "6"
env:
matrix:
- TEST_TYPE=lint
- TEST_TYPE=dist
- TEST_TYPE=compile
- TEST_TYPE=test:web
- TEST_TYPE=test:rn
script:
- |
if [ "$TEST_TYPE" = lint ]; then
npm run lint
elif [ "$TEST_TYPE" = dist ]; then
npm run dist && \
LIB_DIR=dist npm run test:web -- -w 2
elif [ "$TEST_TYPE" = compile ]; then
npm run compile && \
LIB_DIR=lib npm run test:web -- -w 2 && \
LIB_DIR=lib npm run test:rn -- -w 2 && \
LIB_DIR=es npm run test:web -- -w 2
LIB_DIR=es npm run test:rn -- -w 2
elif [ "$TEST_TYPE" = test:web ]; then
npm run test:web -- -w 2 --coverage && \
bash <(curl -s https://codecov.io/bash) -cF web
elif [ "$TEST_TYPE" = test:rn ]; then
npm run test:rn -- -w 2 --coverage && \
bash <(curl -s https://codecov.io/bash) -cF rn
fi