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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcus Eibrink-Lunzenauer
Stud.IP
Merge requests
!4
Integrate playwright into gitlab ci pipeline
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Integrate playwright into gitlab ci pipeline
tleilax/studip:feature/playwright
into
feature/playwright
Overview
0
Commits
8
Pipelines
10
Changes
1
Merged
Jan-Hendrik Willms
requested to merge
tleilax/studip:feature/playwright
into
feature/playwright
2 years ago
Overview
0
Commits
8
Pipelines
10
Changes
1
Expand
0
0
Merge request reports
Compare
feature/playwright
version 10
e05ab340
2 years ago
version 9
b85538a9
2 years ago
version 8
01bcf201
2 years ago
version 7
9561f64d
2 years ago
version 6
50b03fcc
2 years ago
version 5
50b03fcc
2 years ago
version 4
8ecc6701
2 years ago
version 3
5af68ba3
2 years ago
version 2
2a095260
2 years ago
version 1
459757aa
2 years ago
feature/playwright (base)
and
latest version
latest version
682efefe
8 commits,
2 years ago
version 10
e05ab340
7 commits,
2 years ago
version 9
b85538a9
6 commits,
2 years ago
version 8
01bcf201
5 commits,
2 years ago
version 7
9561f64d
4 commits,
2 years ago
version 6
50b03fcc
6 commits,
2 years ago
version 5
50b03fcc
4 commits,
2 years ago
version 4
8ecc6701
3 commits,
2 years ago
version 3
5af68ba3
2 commits,
2 years ago
version 2
2a095260
1 commit,
2 years ago
version 1
459757aa
26 commits,
2 years ago
1 file
+
50
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
50
−
0
Options
image
:
studip/studip:tests-php7.2
variables
:
FF_NETWORK_PER_BUILD
:
1
GIT_DEPTH
:
1
MYSQL_RANDOM_ROOT_PASSWORD
:
"
true"
MYSQL_DATABASE
:
studip_db
@@ -257,6 +258,55 @@ test-assets:
script
:
-
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
-
./cli/studip config:set SHOW_TERMS_ON_FIRST_LOGIN
0
-
npm install playwright
-
npm ci
-
npx playwright install --with-deps
script
:
-
php -S $PHP_WEBSERVER_URL -t public -q &
-
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
:
stage
:
packaging
cache
:
[]
Loading