Commit 95d7c352 authored by Samuel Schepp's avatar Samuel Schepp

Merge branch 'ci' into 'develop'

Ci

See merge request !87
parents bf298271 6684cca3
Pipeline #18441 failed with stages
in 8 minutes and 7 seconds
......@@ -6,26 +6,17 @@ cache:
paths:
- node_modules/
SonarQube:
stage: test
only:
- develop
tags:
- sonar-scanner
script:
- npm install
- npm run test
- sonar-scanner
Tests:
stage: test
artifacts:
paths:
- coverage
tags:
- nodejs
- node
- ng
- google-chrome
script:
- npm install
- npm install --no-shrinkwrap
- npm run test
- npm run e2e
......@@ -35,9 +26,9 @@ Static:
paths:
- documentation
tags:
- nodejs
- node
script:
- npm install
- npm install --no-shrinkwrap
- npm run lint
- npm outdated || true
- npm audit || true
......@@ -52,43 +43,14 @@ Deploy Develop:
- develop
environment:
name: develop
url: https://mocainfo-develop.firebaseapp.com
url: https://web-app-v3.firebaseapp.com/
tags:
- nodejs
- node
- ng
- firebase
script:
- npm install
- npm install --no-shrinkwrap
- echo "$VERSION_FILE" > "src/assets/version.json"
- npm run build -- --configuration=production
- node_modules/.bin/firebase deploy --token $FRBTKN --non-interactive
Deploy Review:
stage: deploy
artifacts:
paths:
- dist
tags:
- review
script:
- npm install
- echo "$VERSION_FILE" > "src/assets/version.json"
- npm run build -- --base-href /mocainfo/$CI_ENVIRONMENT_SLUG/
- rm -r /var/www/html/mocainfo/$CI_ENVIRONMENT_SLUG || true
- cp -R dist /var/www/html/mocainfo/$CI_ENVIRONMENT_SLUG
- echo "$HTACCESS" > /var/www/html/mocainfo/$CI_ENVIRONMENT_SLUG/.htaccess
environment:
name: review_$CI_COMMIT_REF_NAME
url: http://195.201.227.204/mocainfo/$CI_ENVIRONMENT_SLUG
on_stop: Stop Review
Stop Review:
stage: deploy
tags:
- review
variables:
GIT_STRATEGY: none
script:
- rm -r /var/www/html/mocainfo/$CI_ENVIRONMENT_SLUG || true
when: manual
environment:
name: review_$CI_COMMIT_REF_NAME
action: stop
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment