Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

Commit

Permalink
Improve build and test tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
rictic committed Nov 18, 2016
1 parent 25acb61 commit 4e50281
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 35 deletions.
6 changes: 0 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,5 @@ language: node_js
node_js:
- "4"
- "6"
sudo: false
before_install:
- npm install -g npm
before_script:
- npm install
- npm run build
script:
- npm test
3 changes: 3 additions & 0 deletions custom_typings/types_for_deps.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// One of our deps references XHR despite being a node library. -.-

interface XMLHttpRequest {}
23 changes: 0 additions & 23 deletions gulpfile.js

This file was deleted.

7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"start": "./bin/polyserve",
"build": "tsc",
"test": "(tsc; gulp test)",
"test": "npm run build && mocha",
"test:watch": "watchy -w src/ -- npm test",
"format": "find src test | grep '\\.js$\\|\\.ts$' | xargs clang-format --style=file -i"
},
Expand Down Expand Up @@ -48,12 +48,9 @@
"@types/tmp": "0.0.31",
"chai": "^3.5.0",
"chai-as-promised": "^6.0.0",
"gulp": "^3.9.1",
"gulp-mocha": "^2.2.0",
"gulp-spawn-mocha": "^3.1.0",
"istanbul": "^0.4.5",
"mocha": "^3.1.0",
"sinon": "^1.17.5",
"source-map-support": "^0.4.6",
"supertest": "^1.2.0",
"tmp": "0.0.28",
"typescript": "^2.0.3",
Expand Down
2 changes: 1 addition & 1 deletion src/test/start_server_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ suite('startServer', () => {
}
}

let createServerStub: Sinon.SinonStub;
let createServerStub: sinon.SinonStub;
function _setupStubServer() {
_stubServer =
sinon.createStubInstance(http['Server']) as any as http.Server;
Expand Down
3 changes: 3 additions & 0 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--ui tdd
--require source-map-support/register
lib/test/*_test.js lib/test/**/*_test.js

0 comments on commit 4e50281

Please sign in to comment.