Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
GitLab CI/CD
Drupal
Commits
b3a08990
Commit
b3a08990
authored
2 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#45
Change test log strategy
parent
4b46be35
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
test-and-deploy.yml
+3
-3
3 additions, 3 deletions
test-and-deploy.yml
tests/lakedrops.yml
+10
-10
10 additions, 10 deletions
tests/lakedrops.yml
with
13 additions
and
13 deletions
test-and-deploy.yml
+
3
−
3
View file @
b3a08990
...
...
@@ -321,9 +321,9 @@ Debug:
-
mkdir -p files/default/files/translations
-
chmod -R ugo+w files/default/files/
# Prepare log directory for tests.
-
dc exec -u root php mkdir -p /tmp/
test
logs
-
dc exec -u root php rm -rf /tmp/
test
logs/*
-
dc exec -u root php chmod oug+w /tmp/
test
logs
-
dc exec -u root php mkdir -p /tmp/logs
-
dc exec -u root php rm -rf /tmp/logs/*
-
dc exec -u root php chmod oug+w /tmp/logs
artifacts
:
name
:
build
when
:
always
...
...
This diff is collapsed.
Click to expand it.
tests/lakedrops.yml
+
10
−
10
View file @
b3a08990
...
...
@@ -6,7 +6,7 @@
variables
:
GIT_STRATEGY
:
none
after_script
:
-
dc cp php:/tmp/
test
logs
/*
.
-
dc cp php:/tmp/logs .
needs
:
[
'
Build
Site'
]
dependencies
:
-
'
Build
Site'
...
...
@@ -18,7 +18,7 @@
-
DIR=$(dc exec -u root php pwd)
-
if [[ "${THEME_BUILD}" == "yes" && -d ${THEME_CSS_PATH} ]]; then dc cp ${THEME_CSS_PATH} php:${DIR}/${THEME_CSS_PATH}; fi
after_script
:
-
dc cp php:/tmp/
test
logs
/*
.
-
dc cp php:/tmp/logs .
-
if [[ "${THEME_BUILD}" == "yes" && -d ${THEME_CSS_PATH} ]]; then dc exec -u root php rm -rf ${THEME_CSS_PATH}; fi
dependencies
:
-
'
Build
Site'
...
...
@@ -27,27 +27,27 @@
Test Code Style
:
<<
:
*test_lakedrops_default
script
:
-
ahoy test phpcs -- --report=xml --report-file=/tmp/
test
logs/phpcs.xml
-
ahoy test phpcs -- --report=xml --report-file=/tmp/logs/phpcs.xml
artifacts
:
name
:
phpcs
when
:
always
paths
:
-
phpcs.xml
-
logs/
phpcs.xml
rules
:
-
if
:
'
$DISABLE_CI_TEST_CODESTYLE
!=
"1"'
Test PHPUnit
:
<<
:
*test_lakedrops_default
script
:
-
ahoy test phpunit -- --log-junit /tmp/
test
logs/junit.xml --testdox-html /tmp/
test
logs/testdox.html
-
ahoy test phpunit -- --log-junit /tmp/logs/junit.xml --testdox-html /tmp/logs/testdox.html
artifacts
:
name
:
phpunit
when
:
always
paths
:
-
junit.xml
-
testdox.html
-
logs/
junit.xml
-
logs/
testdox.html
reports
:
junit
:
junit.xml
junit
:
logs/
junit.xml
rules
:
-
if
:
'
$DISABLE_CI_TEST_PHPUNIT
!=
"1"'
...
...
@@ -68,12 +68,12 @@ Test Behat:
-
job
:
Update DB
optional
:
true
script
:
-
ahoy behat exec -- --format junit --out /tmp/
testlogs/default.xml
-
ahoy behat exec -- --format junit --out /tmp/
logs
artifacts
:
name
:
behat
when
:
always
paths
:
-
default.xml
-
logs/
default.xml
rules
:
-
if
:
'
$DISABLE_CI_TEST_BEHAT
!=
"1"'
...
...
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