Skip to content

Commit

Permalink
fix(demo): fix demo deployment in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanAyaz committed May 10, 2021
1 parent 17de0ea commit b7f79c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
9 changes: 1 addition & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ branches:
only:
- master

before_script:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sudo apt-get update
- wget -N https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -P ~/
- sudo dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb

services:
- xvfb

Expand All @@ -24,7 +17,7 @@ script:
- npm install
- npm run test
- node_modules/.bin/webdriver-manager update
- npm run build:both:ci
- npm run build:ci
- cp -R dist/demo/browser ./docs/demo

deploy:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"start": "ng serve",
"build:lib": "ng build ngx-device-detector --prod",
"build:demo": "ng build demo --production",
"build:both:ci": "ng build demo --base-href \"https://koderlabs.github.io/ngx-device-detector/demo/\" --prod --output-hashing=all && npm run build:ssr",
"build:ci": "ng build demo --base-href https://koderlabs.github.io/ngx-device-detector/demo/ --prod --output-hashing=all",
"docs": "npm run docs:build",
"docs:build": "node_modules/.bin/compodoc -p --tsconfig ./tsconfig.json -n ngx-device-detector -d docs --hideGenerator --theme Vagrant",
"docs:serve": "npm run docs:build -- -s",
Expand All @@ -27,7 +27,7 @@
"release": "npm run pre-release && cd dist/ngx-device-detector && npm publish && cd ../../",
"dev:ssr": "ng run demo:serve-ssr",
"serve:ssr": "node dist/demo/server/main.js",
"build:ssr": "ng build demo --prod && ng run demo:server:production && cp -a projects/demo/server/. ./dist/demo",
"build:ssr": "ng run demo:server:production && cp -a projects/demo/server/. ./dist/demo",
"deploy:ssr:demo": "sh scripts/deploy_ssr_demo.sh",
"prerender": "ng run demo:prerender",
"postversion": "node scripts/post-version",
Expand Down

0 comments on commit b7f79c8

Please sign in to comment.