Skip to content
Snippets Groups Projects

Continuous integration

Merged Sylvain Techene requested to merge continuousIntegration into develop
2 files
+ 41
3
Compare changes
  • Side-by-side
  • Inline
Files
2
.gitlab-ci.yml 0 → 100644
+ 38
0
image: trion/ng-cli-karma
cache:
paths:
- node_modules/
before_script:
- apt-get update -qq && apt-get install -y -qq sshpass
deploy_dev:
stage: deploy
# environment: Staging
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
- sshpass -V
- export SSHPASS=$USER_PASS
- sshpass -e scp -o stricthostkeychecking=no -r dist/OMEGAlpes-web-front-end $USER_SSH@$SERVER_ADDRESS:$DEV_PATH/front
deploy_recette:
stage: deploy
# environment: Production
only:
- tags
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
- sshpass -V
- export SSHPASS=$USER_PASS
- sshpass -e scp -o stricthostkeychecking=no -r dist/OMEGAlpes-web-front-end $USER_SSH@vps.syltech.fr:$REC_PATH/front
Loading