Skip to content

Commit f365bd7

Browse files
committed
Travis CI追加
1 parent 5736b67 commit f365bd7

File tree

3 files changed

+268
-7
lines changed

3 files changed

+268
-7
lines changed

.travis.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
language: node_js
2+
3+
sudo: false
4+
5+
os:
6+
- osx
7+
- linux
8+
9+
cache:
10+
directories:
11+
- $HOME/.cache/yarn
12+
- node_modules
13+
- .vscode-test
14+
15+
branches:
16+
only:
17+
- master
18+
19+
notifications:
20+
email: true
21+
22+
before_install:
23+
- if [ $TRAVIS_OS_NAME == "linux" ]; then
24+
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
25+
sh -e /etc/init.d/xvfb start;
26+
sleep 3;
27+
fi
28+
29+
install:
30+
- yarn
31+
32+
before_script:
33+
- "yarn run vscode:prepublish"
34+
35+
script:
36+
- "yarn run test"

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"compile": "tsc -p ./",
99
"watch": "tsc -watch -p ./",
1010
"postinstall": "node ./node_modules/vscode/bin/install",
11-
"test": "yarn run compile && node ./node_modules/vscode/bin/test",
11+
"test": "npm-run-all test:*",
12+
"test:mocha": "yarn run compile && node ./node_modules/vscode/bin/test",
1213
"test:lint": "tslint -c tslint.yml 'src/**/*.{ts,tsx}'"
1314
},
1415
"engines": {
@@ -23,6 +24,7 @@
2324
"core-js": "^2.5.7",
2425
"fuse.js": "^3.2.1",
2526
"mocha": "^5.2.0",
27+
"npm-run-all": "^4.1.3",
2628
"qiita-js-2": "^1.2.5",
2729
"sinon": "^6.3.4",
2830
"tslint": "^5.8.0",

0 commit comments

Comments
 (0)