Skip to content
Snippets Groups Projects
Commit 8b8ccb9e authored by Vegard Murvold Sporstøl's avatar Vegard Murvold Sporstøl Committed by Irina Kera Gundersen
Browse files

restructure pipeline

parent 200834e0
No related branches found
No related tags found
2 merge requests!11Testing,!10Testing
stages: stages:
- test - test-frontend
- test-backend
- staging - staging
test-frontend: test-frontend:
image: node:latest image: node:latest
stage: test stage: test-frontend
script: script:
# Configure browser # Configure browser
- apt-get update -yqqq - apt-get update -yqqq
- apt-get install -yqq xvfb #- apt-get install -yqq xvfb
- apt-get install iceweasel -yqq #- apt-get install iceweasel -yqq
- apt-get install dbus-x11 -yqq - apt-get install dbus-x11 -yqq
- Xvfb :99 -screen 0 1280x720x24 -ac & - Xvfb :99 -screen 0 1280x720x24 -ac &
- export DISPLAY=:99 - export DISPLAY=:99
- export $(dbus-launch) - export $(dbus-launch)
# Install dependencies # Install dependencies
- npm install #- npm install
- npm install -g testcafe - npm install -g testcafe
- testcafe --list-browsers - testcafe --list-browsers
...@@ -25,7 +26,7 @@ test-frontend: ...@@ -25,7 +26,7 @@ test-frontend:
test-backend: test-backend:
image: python:3.8 image: python:3.8
stage: test stage: test-backend
script: script:
- cd backend/secfit - cd backend/secfit
- apt-get update -qy - apt-get update -qy
......
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