ci(testing): Disable frontend testing

This commit is contained in:
Georg Krause 2022-10-30 19:39:04 +01:00
parent 9a56350767
commit f76bb01aac
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
1 changed files with 31 additions and 29 deletions

View File

@ -219,35 +219,37 @@ test_api:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: always when: always
test_front: # Those tests are disabled for now since no vitest dom emulation is providing
interruptible: true # AudioContext, which is required for our HTML audio player
stage: test #test_front:
image: node:16-alpine # interruptible: true
before_script: # stage: test
- cd front # image: node:16-alpine
- apk add --no-cache jq bash coreutils python3 # before_script:
script: # - cd front
- yarn install --check-files # - apk add --no-cache jq bash coreutils python3
- yarn test:unit # script:
cache: # - yarn install --check-files
key: "funkwhale__front_dependencies" # - yarn test:unit
paths: # cache:
- front/node_modules # key: "funkwhale__front_dependencies"
- front/yarn.lock # paths:
artifacts: # - front/node_modules
name: "front_${CI_COMMIT_REF_NAME}" # - front/yarn.lock
paths: # artifacts:
- front/dist/ # name: "front_${CI_COMMIT_REF_NAME}"
reports: # paths:
junit: front/coverage/cobertura-coverage.xml # - front/dist/
tags: # reports:
- docker # junit: front/coverage/cobertura-coverage.xml
rules: # tags:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" || $CI_PIPELINE_SOURCE == "push" # - docker
changes: # rules:
- front/**/* # - if: $CI_PIPELINE_SOURCE == "merge_request_event" || $CI_PIPELINE_SOURCE == "push"
- if: $CI_COMMIT_BRANCH == "develop" || $CI_COMMIT_BRANCH == "stable" # changes:
when: always # - front/**/*
# - if: $CI_COMMIT_BRANCH == "develop" || $CI_COMMIT_BRANCH == "stable"
# when: always
build_docs: build_docs:
stage: build stage: build