Skip to content

Commit

Permalink
Feature travis ci (#98)
Browse files Browse the repository at this point in the history
* Add Travis build

* ADD Build Status Badge

* Enable prod mode & set up base URL to deploy gh-pages

* Install local version dependencies
  • Loading branch information
hamzahamidi authored and Fabian Wiles committed Apr 6, 2018
1 parent ff3405f commit 18807c3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.org/gothinkster/angular-realworld-example-app.svg?branch=develop)](https://travis-ci.org/gothinkster/angular-realworld-example-app)

# ![Angular 2 Example App](logo.png)

> ### Angular 5 codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the [RealWorld](https://github.com/gothinkster/realworld-example-apps) spec and API.
Expand Down
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.9.4"

branches:
only:
- master

before_script:
- yarn install --frozen-lockfile

script:
- ng build --prod --bh "./"

deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
keep-history: true
on:
branch: master
local_dir: dist

0 comments on commit 18807c3

Please sign in to comment.