Skip to content

Commit

Permalink
Merge pull request #2 from brunolm/travis-ci
Browse files Browse the repository at this point in the history
Add Travis ci
  • Loading branch information
brunolm authored Oct 27, 2017
2 parents c1ca368 + 1c7279b commit efdbac6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: node_js
node_js:
- "8.7.0"

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

before_script:
- set -e
- npm i
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

script:
- npm run lint
- npm run test
- npm run e2e
- npm run build -- --prod --base-href /
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Angular: How To
[![Build Status](https://travis-ci.org/brunolm/angular-how-to.svg?branch=master)](https://travis-ci.org/brunolm/angular-how-to)

Each Pull Request will contain explanation and steps taken to complete a feature.

- [Create a new Angular project](https://github.com/brunolm/angular-how-to/pull/1)
- [Add project on Travis CI](https://github.com/brunolm/angular-how-to/pull/2)
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"test": "ng test --watch=false",
"test-watch": "ng test --watch=false",
"lint": "ng lint",
"e2e": "ng e2e"
},
Expand Down

0 comments on commit efdbac6

Please sign in to comment.