Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcus Eibrink-Lunzenauer
Stud.IP
Commits
2a095260
Commit
2a095260
authored
May 16, 2023
by
Jan-Hendrik Willms
Browse files
Options
Downloads
Patches
Plain Diff
integrate playwright into gitlab ci pipeline, re #2635
parent
b78f81e1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+49
-0
49 additions, 0 deletions
.gitlab-ci.yml
with
49 additions
and
0 deletions
.gitlab-ci.yml
+
49
−
0
View file @
2a095260
image
:
studip/studip:tests-php7.2
image
:
studip/studip:tests-php7.2
variables
:
variables
:
FF_NETWORK_PER_BUILD
:
1
GIT_DEPTH
:
1
GIT_DEPTH
:
1
MYSQL_RANDOM_ROOT_PASSWORD
:
"
true"
MYSQL_RANDOM_ROOT_PASSWORD
:
"
true"
MYSQL_DATABASE
:
studip_db
MYSQL_DATABASE
:
studip_db
...
@@ -257,6 +258,54 @@ test-assets:
...
@@ -257,6 +258,54 @@ test-assets:
script
:
script
:
-
npm run webpack-dev
-
npm run webpack-dev
test-e2e
:
stage
:
test
# needs: [lint-css, lint-js, lint-php]
image
:
mcr.microsoft.com/playwright:v1.33.0-jammy
services
:
-
mariadb
variables
:
PHP_WEBSERVER_URL
:
localhost:65432
E2E_REPORT
:
$REPORT_DIR/e2e.xml
interruptible
:
true
when
:
manual
cache
:
-
*composer-cache
-
*npm-cache
before_script
:
-
mkdir ./bin
-
apt-get update
-
apt -y install software-properties-common
-
add-apt-repository ppa:ondrej/php
-
apt-get update
-
DEBIAN_FRONTEND=noninteractive
apt-get -yq install
make zip unzip mariadb-client
php7.4 libapache2-mod-php7.4 php7.4-common php7.4-curl php7.4-mbstring
php7.4-xmlrpc php7.4-mysql php7.4-gd php7.4-xml php7.4-intl php7.4-ldap
php7.4-imagick php7.4-json php7.4-cli
-
echo "short_open_tag=On" >> /etc/php/7.4/php.ini
-
echo "short_open_tag=On" >> /etc/php/7.4/cli/php.ini
-
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
-
php composer-setup.php --install-dir=./bin --filename=composer
-
export PATH="./bin:$PATH"
-
php -r "unlink('composer-setup.php');"
-
*mkdir-reports
-
*initialize-studip-database
-
npm ci
-
npm install playwright
-
npx playwright install --with-deps
script
:
-
php -S $PHP_WEBSERVER_URL -t public &
-
PHP_SERVER_PID=$!
-
PLAYWRIGHT_JUNIT_OUTPUT_NAME="$E2E_REPORT"
PLAYWRIGHT_BASE_URL="http://$PHP_WEBSERVER_URL"
npx playwright test --reporter=junit --grep-invert a11y
-
kill -3 $PHP_SERVER_PID
artifacts
:
reports
:
junit
:
$E2E_REPORT
packaging
:
packaging
:
stage
:
packaging
stage
:
packaging
cache
:
[]
cache
:
[]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment