Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 2dc2462

Browse files
authored
chore(ci): add travis (#52)
This PR add travis support for the repo. It just runs lints, compiles and builds for now. When we have some unit tests, those should be added as well. Also had to fix a few linting errors while at it.
1 parent 77c0387 commit 2dc2462

File tree

5 files changed

+424
-394
lines changed

5 files changed

+424
-394
lines changed

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
dist: trusty
2+
sudo: required
3+
language: node_js
4+
node_js:
5+
- "5"
6+
os:
7+
- linux
8+
env:
9+
global:
10+
- DBUS_SESSION_BUS_ADDRESS=/dev/null
11+
- DISPLAY=:99.0
12+
- CHROME_BIN=chromium-browser
13+
before_script:
14+
- sh -e /etc/init.d/xvfb start
15+
install:
16+
- npm install -g gulp
17+
- npm install
18+
- npm run typings install
19+
script:
20+
- npm run lint
21+
- npm run tsc
22+
- gulp build

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Angular in-memory-web-api
2+
[![Build Status][travis-badge]][travis-badge-url]
23

34
>**UPDATE NOTICE**
45
>
@@ -196,3 +197,6 @@ compiling your application project.
196197
- Add two tags to the release commit with for unpkg
197198
- the version number
198199
- 'latest'
200+
201+
[travis-badge]: https://travis-ci.org/angular/in-memory-web-api.svg?branch=master
202+
[travis-badge-url]: https://travis-ci.org/angular/in-memory-web-api

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"tsc": "tsc",
99
"tsc:w": "tsc -w",
10-
"lint": "tslint ./src/*.ts -t verbose",
10+
"lint": "tslint ./src/*.ts -t verbose -e ./src/*.d.ts",
1111
"lite": "lite-server",
1212
"live": "live-server",
1313
"start": "concurrently \"npm run tsc:w\" \"npm run lite\" ",

0 commit comments

Comments
 (0)