diff options
author | afc163 <afc163@gmail.com> | 2015-12-08 21:22:25 +0800 |
---|---|---|
committer | afc163 <afc163@gmail.com> | 2015-12-08 21:22:25 +0800 |
commit | 3c176a6f616225c65d576881c9bbd2f5e8002e59 (patch) | |
tree | 3d87ba72e41977ae0b705179f4e8882b41787776 | |
parent | 5784f9147159312ef97b44bc2f03a563f55d662b (diff) | |
download | time-picker-3c176a6f616225c65d576881c9bbd2f5e8002e59.tar.gz time-picker-3c176a6f616225c65d576881c9bbd2f5e8002e59.tar.zst time-picker-3c176a6f616225c65d576881c9bbd2f5e8002e59.zip |
fix test case
-rw-r--r-- | .travis.yml | 32 | ||||
-rw-r--r-- | package.json | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..15c7ce7 --- /dev/null +++ b/.travis.yml | |||
@@ -0,0 +1,32 @@ | |||
1 | language: node_js | ||
2 | |||
3 | notifications: | ||
4 | email: | ||
5 | - yiminghe@gmail.com | ||
6 | |||
7 | node_js: | ||
8 | - 4.0.0 | ||
9 | |||
10 | before_install: | ||
11 | - | | ||
12 | if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(docs|examples))/' | ||
13 | then | ||
14 | echo "Only docs were updated, stopping build process." | ||
15 | exit | ||
16 | fi | ||
17 | npm install mocha-phantomjs -g | ||
18 | phantomjs --version | ||
19 | |||
20 | script: | ||
21 | - | | ||
22 | if [ "$TEST_TYPE" = test ]; then | ||
23 | npm test | ||
24 | else | ||
25 | npm run $TEST_TYPE | ||
26 | fi | ||
27 | |||
28 | env: | ||
29 | matrix: | ||
30 | - TEST_TYPE=lint | ||
31 | - TEST_TYPE=browser-test | ||
32 | - TEST_TYPE=browser-test-cover | ||
diff --git a/package.json b/package.json index 239bdac..52d9fd7 100644 --- a/package.json +++ b/package.json | |||
@@ -49,6 +49,7 @@ | |||
49 | "pre-commit": "1.x", | 49 | "pre-commit": "1.x", |
50 | "rc-server": "3.x", | 50 | "rc-server": "3.x", |
51 | "rc-tools": "4.x", | 51 | "rc-tools": "4.x", |
52 | "rc-util": "^3.1.2", | ||
52 | "react": "0.14.x", | 53 | "react": "0.14.x", |
53 | "react-addons-test-utils": "0.14.x", | 54 | "react-addons-test-utils": "0.14.x", |
54 | "react-dom": "0.14.x" | 55 | "react-dom": "0.14.x" |