Skip to content

Instantly share code, notes, and snippets.

@wingsuitist
Last active August 23, 2017 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wingsuitist/2b4fc218b5882f548189f1c5d0fdae09 to your computer and use it in GitHub Desktop.
Save wingsuitist/2b4fc218b5882f548189f1c5d0fdae09 to your computer and use it in GitHub Desktop.
gitlab ci with surge and angular
image: trion/ng-cli-karma
cache:
paths:
- node_modules/
deploy_stage:
stage: deploy
environment: Stage
only:
- master
script:
- rm ./package-lock.json
- npm install
- ./node_modules/@angular/cli/bin/ng test --progress false --single-run=true --watch=false
- ./node_modules/@angular/cli/bin/ng e2e --progress false --watch=false
- ./node_modules/@angular/cli/bin/ng build --progress false --prod --base-href XXX-stage.surge.sh
- ./node_modules/.bin/surge -p dist/ --domain XXX-stage.surge.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment