This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 18e5cda8 authored by Eduard Frankford's avatar Eduard Frankford
Browse files

made e2e tests to execute after deployment of new changes

parent 63134b52
Branches
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
......@@ -14,6 +14,7 @@ stages:
- analyze
- release
- deploy
- e2e
before_script:
- export NG_CLI_ANALYTICS="false"
......@@ -112,28 +113,6 @@ frontend-test:
expire_in: 15 days
needs: []
e2e-test:
stage: test
cache:
# inherit all global cache settings
<<: *global_cache
# override the policy
policy: pull
only:
refs:
- development
services:
- selenium/standalone-chrome
dependencies:
- frontend-test
script:
- npm install
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- dpkg -i google-chrome*.deb
- export JHI_E2E_HEADLESS=true
- export E2E_PASSWORD=$E2E_PASSWORD
- npm run e2e --host=selenium__standalone-chrome
sonar-analyze:
stage: analyze
cache:
......@@ -187,3 +166,25 @@ deploy:
script:
- ssh contDeploy@codeability-austria -p 1022 "cd /home/michael/gitsearch && git pull && cd src/main/docker/ && docker pull sharing-codeability.uibk.ac.at:5051/sharing/codeability-sharing-platform && GIT_BRANCH=`git rev-parse --abbrev-ref HEAD` COMMIT_ID=`git rev-parse HEAD` SPRING_PROFILES_ACTIVE=staging,swagger docker-compose -f gitsearch.yml up -d --no-deps --build --force-recreate gitsearch-app && exit"
when: always
e2e-test:
stage: e2e
cache:
# inherit all global cache settings
<<: *global_cache
# override the policy
policy: pull
only:
refs:
- development
services:
- selenium/standalone-chrome
dependencies:
- deploy
script:
- npm install
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- dpkg -i google-chrome*.deb
- export JHI_E2E_HEADLESS=true
- export E2E_PASSWORD=$E2E_PASSWORD
- npm run e2e --host=selenium__standalone-chrome
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