Skip to content
Snippets Groups Projects
Commit 7f2407eb authored by s87777's avatar s87777
Browse files

Test26

parent 0561ff87
No related branches found
No related tags found
No related merge requests found
Pipeline #50212 failed
......@@ -6,15 +6,27 @@ services:
stages:
- build
backend:
stage: build
services:
- docker:19.03.12-dind
script:
- docker pull registry.bht-berlin.de:443/s87777/profwebbackend:latest
- docker run --name backend_container -d -p 80:80 registry.bht-berlin.de:443/s87777/profwebbackend
- echo "docker commands success"
tags:
- docker-privileged
build_test_frontend:
stage: build
services:
- docker:19.03.12-dind
- name: selenium/standalone-chrome
alias: chrome
variables:
APP_TESTS_REMOTE_WEB_DRIVER_URL: "http://chrome:4444"
environment:
- ENV APP_TESTS_REMOTE_WEB_DRIVER_URL=http://chrome:4444
- ENV REACT_APP_API_SERVER_URL=http://backend:80
script:
- echo "install npm"
......@@ -26,16 +38,11 @@ build_test_frontend:
- echo "Install erfolgreich"
- CI=false npm run build
- echo "Build erfolgreich"
- docker pull registry.bht-berlin.de:443/s87777/profwebbackend:latest
- docker run --name backend_container -d registry.bht-berlin.de:443/s87777/profwebbackend
- echo "docker commands success"
- npm start &
- echo "start test"
- npm test --host=$SELENIUM_HOST
- echo "Testing finshed"
tags:
- docker-privileged
artifacts:
expire_in: 1 hour
paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment