ci: update .travis.yml (#37)
Update travis configuration for auto deployment of pull requests to gh-pages. Fixes #4
This commit is contained in:
+10
-4
@@ -4,14 +4,20 @@ dist: trusty
|
|||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- "9.5"
|
- "9.5"
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- npm i npm@latest -g
|
- npm i npm@latest -g
|
||||||
- npm install -g --silent @angular/cli
|
- npm install -g --silent @angular/cli
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ng lint
|
- ng lint
|
||||||
- ng build --prod
|
- ng build --prod --base-href="/web-app/"
|
||||||
|
|
||||||
after_success:
|
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
provider: pages
|
||||||
|
skip-cleanup: true
|
||||||
|
local-dir: dist/web-app
|
||||||
|
github-token: $GITHUB_TOKEN
|
||||||
|
keep-history: true
|
||||||
|
on:
|
||||||
|
branch: master
|
||||||
|
|||||||
Reference in New Issue
Block a user