diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..f4ac131f1337ace9a47f163cdbd4fadc3d10f1f3 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,38 @@ +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 diff --git a/package.json b/package.json index 877cfb8b56cfd8b191e5b5cee2efcee11496f813..7d870360f0ee908a60efba012c7fd64f603b8a27 100644 --- a/package.json +++ b/package.json @@ -26,8 +26,8 @@ "zone.js": "~0.9.1" }, "devDependencies": { - "@angular-devkit/build-angular": "~0.803.22", - "@angular/cli": "~8.3.22", + "@angular-devkit/build-angular": "^0.803.24", + "@angular/cli": "^8.3.24", "@angular/compiler-cli": "~8.2.14", "@angular/language-service": "~8.2.14", "@ngxs/devtools-plugin": "^3.6.0", @@ -42,7 +42,7 @@ "karma-coverage-istanbul-reporter": "~2.0.1", "karma-jasmine": "~2.0.1", "karma-jasmine-html-reporter": "^1.4.0", - "protractor": "~5.4.0", + "protractor": "^5.4.3", "ts-node": "~7.0.0", "tslint": "~5.15.0", "typescript": "~3.5.3"