Changeset View
Changeset View
Standalone View
Standalone View
jobs/templates/includes/stage-cypress-tests.groovy.j2
stage('Cypress tests') { | stage('Cypress tests') { | ||||
{% filter indent(width=2) %} | {% filter indent(width=2) %} | ||||
{%- include 'includes/agent-docker-cypress.groovy.j2' -%} | {%- include 'includes/agent-docker-cypress.groovy.j2' -%} | ||||
{% endfilter %} | {% endfilter %} | ||||
stages { | stages { | ||||
stage ('Setup cypress environment') { | stage ('Setup cypress environment') { | ||||
steps { | steps { | ||||
sh ''' | sh ''' | ||||
python3 -m pip install --no-use-pep517 --user -e .[testing] | python3 -m pip install --no-use-pep517 --user -e .[testing] | ||||
yarn install --frozen-lockfile | yarn install --frozen-lockfile | ||||
NODE_ENV=test yarn run webpack --config ./swh/web/assets/config/webpack.config.development.js --colors | yarn build-dev | ||||
yarn run cypress install | |||||
''' | ''' | ||||
} | } | ||||
} | } | ||||
stage ('Run cypress tests') { | stage ('Run cypress tests') { | ||||
steps { | steps { | ||||
sh '''#!/bin/bash | sh '''#!/bin/bash | ||||
export PYTHONPATH=$PWD | export PYTHONPATH=$PWD | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |