Commit ed9859a7 authored by Kevin Linne's avatar Kevin Linne

Use mocainfo infrastructure

parent bf298271
Pipeline #18436 failed with stage
in 2 minutes and 21 seconds
......@@ -6,24 +6,15 @@ 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 run test
......@@ -35,7 +26,7 @@ Static:
paths:
- documentation
tags:
- nodejs
- node
script:
- npm install
- npm run lint
......@@ -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
- 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