Skip to content

Commit

Permalink
Add travis ci config.
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitgouthaman committed Sep 17, 2017
1 parent 55b5913 commit f055b83
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
sudo: required
dist: trusty
language: node_js
node_js:
- '8.3.0'

addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
- google-chrome-beta

before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

before_script:
- npm install
- npm build

script: npm test
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"build": "ng build --prod --aot",
"test": "ng test --single-run",
"lint": "ng lint"
},
"private": true,
Expand Down

0 comments on commit f055b83

Please sign in to comment.