Skip to content

Commit 00a5062

Browse files
knightburtonyichoi
authored andcommitted
Run tests on travis CI (#14)
IoT.js-Debug-DCO-1.0-Signed-off-by: Imre Kiss [email protected]
1 parent af879ec commit 00a5062

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.travis.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
language: node_js
22
node_js: 8
33
os: linux
4+
before_install:
5+
- if [ $TRAVIS_OS_NAME == "linux" ]; then
6+
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
7+
sh -e /etc/init.d/xvfb start;
8+
sleep 3;
9+
fi
410
install:
511
- npm install
12+
- npm run vscode:prepublish
613
cache:
714
directories:
815
- node_modules
9-
addons:
10-
apt:
11-
sources:
12-
- ubuntu-toolchain-r-test
13-
packages:
14-
- libstdc++-4.9-dev
1516
jobs:
1617
include:
1718
- stage: Check
@@ -20,3 +21,6 @@ jobs:
2021
- stage: Build
2122
script:
2223
- npm run compile
24+
- stage: Test
25+
script:
26+
- npm run test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"compile": "tsc -p ./",
3535
"watch": "tsc -watch -p ./",
3636
"postinstall": "node ./node_modules/vscode/bin/install",
37-
"test": "npm run compile && node ./node_modules/vscode/bin/test"
37+
"test": "node ./node_modules/vscode/bin/test"
3838
},
3939
"devDependencies": {
4040
"@types/mocha": "^2.2.42",

0 commit comments

Comments
 (0)