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
Jan-Hendrik Willms
Stud.IP
Commits
45be6543
Commit
45be6543
authored
2 years ago
by
David Siegfried
Browse files
Options
Downloads
Patches
Plain Diff
Use Unit-Testreports, closes #1202
Closes #1202 Merge request
studip/studip!713
parent
260e35da
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
.gitlab-ci.yml
+53
-20
53 additions, 20 deletions
.gitlab-ci.yml
with
54 additions
and
20 deletions
.gitignore
+
1
−
0
View file @
45be6543
...
...
@@ -4,6 +4,7 @@
composer
node_modules
nbproject
.phplint-cache
config/config_local.inc.php
config/config.inc.php
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
53
−
20
View file @
45be6543
...
...
@@ -24,42 +24,75 @@ Linting:
before_script
:
-
make composer-dev
script
:
-
php -d memory_limit=-1 composer/bin/phplint
-
php -d memory_limit=-1 composer/bin/phplint --xml report.xml
artifacts
:
when
:
always
expire_in
:
1 week
paths
:
-
tests/_output
reports
:
junit
:
tests/_output/report.xml
Unit Test
:
stage
:
Tests
allow_failure
:
false
before_script
:
-
cp ./docker/studip/config_local.php ./config/config_local.inc.php
-
cp ./config/config.inc.php.dist ./config/config.inc.php
-
cp docker/studip/config_local.php config/config_local.inc.php
-
cp config/config.inc.php.dist config/config.inc.php
-
make composer-dev
script
:
-
make test
-
composer/bin/codecept run unit --xml
# Remove absolute path in report
-
sed -i "s%$PWD/%%" tests/_output/report.xml
artifacts
:
when
:
always
expire_in
:
1 week
paths
:
-
tests/_output
reports
:
junit
:
tests/_output/report.xml
Functional Test
:
stage
:
Tests
allow_failure
:
false
before_script
:
-
chmod +x
./
.gitlab/scripts/install_db.sh
-
./
.gitlab/scripts/install_db.sh
-
cp
./
docker/studip/config_local.php
./
config/config_local.inc.php
-
cp
./
config/config.inc.php.dist
./
config/config.inc.php
-
make composer
-
./
cli/studip migrate
-
chmod +x .gitlab/scripts/install_db.sh
-
.gitlab/scripts/install_db.sh
-
cp docker/studip/config_local.php config/config_local.inc.php
-
cp config/config.inc.php.dist config/config.inc.php
-
make composer
-dev
-
cli/studip migrate
script
:
-
make test-functional
-
composer/bin/codecept run functional --xml
-
sed -i "s%$PWD/%%" tests/_output/report.xml
artifacts
:
when
:
always
expire_in
:
1 week
paths
:
-
tests/_output
reports
:
junit
:
tests/_output/report.xml
JSONAPI Test
:
stage
:
Tests
allow_failure
:
false
before_script
:
-
chmod +x
./
.gitlab/scripts/install_db.sh
-
./
.gitlab/scripts/install_db.sh
-
cp
./
docker/studip/config_local.php
./
config/config_local.inc.php
-
cp
./
config/config.inc.php.dist
./
config/config.inc.php
-
make composer
-
./
cli/studip migrate
-
chmod +x .gitlab/scripts/install_db.sh
-
.gitlab/scripts/install_db.sh
-
cp docker/studip/config_local.php config/config_local.inc.php
-
cp config/config.inc.php.dist config/config.inc.php
-
make composer
-dev
-
cli/studip migrate
script
:
-
make test-jsonapi
-
composer/bin/codecept run jsonapi --xml
-
sed -i "s%$PWD/%%" tests/_output/report.xml
artifacts
:
when
:
always
expire_in
:
1 week
paths
:
-
tests/_output
reports
:
junit
:
tests/_output/report.xml
Packaging
:
stage
:
Packaging
...
...
@@ -78,8 +111,8 @@ Packaging:
untracked
:
true
name
:
'
Stud.IP-Release-$CI_COMMIT_TAG'
paths
:
-
./
.pkg/studip-release.zip
-
./
.pkg/studip-release.tar.gz
-
.pkg/studip-release.zip
-
.pkg/studip-release.tar.gz
reports
:
dotenv
:
.packaging.env
...
...
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