Skip to content

Commit 7dcb91c

Browse files
author
kamil.mysliwiec
committed
Travis integration
1 parent a40e6f3 commit 7dcb91c

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
language: node_js
22
node_js:
33
- "7"
4+
before_script:
5+
- export DISPLAY=:99.0
6+
- sh -e /etc/init.d/xvfb start
47
script:
58
- npm test
69
- npm run build

example/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ export class Application implements NestApplication {
55
constructor(private app) {}
66

77
start() {
8-
this.app.listen(3030, () => {
8+
const server = this.app.listen(3030, () => {
99
console.log("Application listen on port:", 3030);
10-
this.app.close();
10+
server.close();
1111
});
1212
}
1313

0 commit comments

Comments
 (0)