From 7db914846de1dd6fa6ed54d17ce936a049f843f1 Mon Sep 17 00:00:00 2001 From: Abhay Chawla Date: Sat, 9 Jun 2018 00:29:17 +0530 Subject: [PATCH] ci: update .travis.yml (#37) Update travis configuration for auto deployment of pull requests to gh-pages. Fixes #4 --- .travis.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 00be57261..d637722bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,14 +4,20 @@ dist: trusty language: node_js node_js: - "9.5" - + before_script: - npm i npm@latest -g - npm install -g --silent @angular/cli script: - ng lint - - ng build --prod - -after_success: + - ng build --prod --base-href="/web-app/" +deploy: + provider: pages + skip-cleanup: true + local-dir: dist/web-app + github-token: $GITHUB_TOKEN + keep-history: true + on: + branch: master