Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
crm
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
crm
Merge requests
!48
Issue
#3527319
by bluegeek9: Ability to preview GitLab Pages in CI
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3527319
by bluegeek9: Ability to preview GitLab Pages in CI
issue/crm-3527319:3527319-ability-to-preview
into
1.0.x
Overview
0
Commits
11
Pipelines
15
Changes
1
Open
Steven Ayers
requested to merge
issue/crm-3527319:3527319-ability-to-preview
into
1.0.x
4 weeks ago
Overview
0
Commits
11
Pipelines
15
Changes
1
Expand
Closes
#3527319
0
0
Merge request reports
Compare
1.0.x
version 10
94abf604
6 days ago
version 9
aac0ffe7
1 week ago
version 8
69f9c958
2 weeks ago
version 7
95d56e02
4 weeks ago
version 6
aeaaf335
4 weeks ago
version 5
90388d2e
4 weeks ago
version 4
2517c421
4 weeks ago
version 3
3f1b6c16
4 weeks ago
version 2
6a59edb3
4 weeks ago
version 1
f04b4198
4 weeks ago
1.0.x (HEAD)
and
latest version
latest version
5b1121ec
11 commits,
5 days ago
version 10
94abf604
10 commits,
6 days ago
version 9
aac0ffe7
9 commits,
1 week ago
version 8
69f9c958
8 commits,
2 weeks ago
version 7
95d56e02
7 commits,
4 weeks ago
version 6
aeaaf335
6 commits,
4 weeks ago
version 5
90388d2e
5 commits,
4 weeks ago
version 4
2517c421
4 commits,
4 weeks ago
version 3
3f1b6c16
3 commits,
4 weeks ago
version 2
6a59edb3
2 commits,
4 weeks ago
version 1
f04b4198
1 commit,
4 weeks ago
1 file
+
26
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
26
−
2
Options
@@ -54,6 +54,10 @@ variables:
OPT_IN_TEST_MAX_PHP
:
1
_PHPUNIT_CONCURRENT
:
0
.skip-pages-rule
:
&skip-pages-rule
if
:
'
$SKIP_PAGES
==
"1"'
when
:
never
phpunit (coverage)
:
extends
:
phpunit
rules
:
@@ -85,15 +89,35 @@ phpunit:
rules
:
-
when
:
never
# Overriding rules for the "pages" job so it runs for MRs.
pages
:
stage
:
test
rules
:
-
*skip-pages-rule
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
-
exists
:
-
mkdocs.yml
when
:
on_success
pages-preview
:
stage
:
deploy
needs
:
-
job
:
phpunit (coverage)
-
job
:
pages
artifacts
:
true
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
artifacts
:
expose_as
:
'
MkDocs
Preview'
paths
:
-
'
public/index.html'
pages
:
path_prefix
:
"
preview-$CI_MERGE_REQUEST_IID"
before_script
:
-
cp $CI_PROJECT_DIR/favicon.ico $CI_PROJECT_DIR/docs/favicon.ico
-
cp $CI_PROJECT_DIR/README.md $CI_PROJECT_DIR/docs/index.md
-
cp -R $CI_PROJECT_DIR/coverage $CI_PROJECT_DIR/docs/coverage
###################################################################################
#
# *
Loading