Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Simple-Webpage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Service Desk
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
Templates
Simple-Webpage
Commits
9dd1b6af
Verified
Commit
9dd1b6af
authored
5 years ago
by
Dmytro Bogatov
Browse files
Options
Downloads
Patches
Plain Diff
Adjust to better CI.
parent
6b1a6eca
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#5925
passed
5 years ago
Stage: build
Stage: build-review
Stage: review
Stage: test
Stage: release
Stage: deploy
Pipeline: Setup-Manager
#5926
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+72
-37
72 additions, 37 deletions
.gitlab-ci.yml
with
72 additions
and
37 deletions
.gitlab-ci.yml
+
72
−
37
View file @
9dd1b6af
stages
:
stages
:
-
pre-build
-
build
-
build
-
test
-
build-review
-
build-review
-
review
-
review
-
quality-security
-
test
-
cleanup
-
release
-
release
-
deploy
-
deploy
variables
:
variables
:
URL
:
"
example.com"
# if you include 'website-deploy'
DIST
:
"
website"
# change if you use custom build script
INDEX
:
"
index.html"
DIST
:
"
website"
REPO
:
"
templates/simple-webpage"
REPO
:
"
templates/simple-webpage"
AUTHPASSWORD
:
"
example
"
# change to "" (empty string) to disable authentication
AUTHPASSWORD
:
"
"
# change to "" (empty string) to disable authentication
# username is always "review" (without quotes)
# username is always "review" (without quotes)
CI_REF
:
&ref
2048650e2b7bd1ac2e54fc930be9a476682dbd57
DOCKER_TLS_CERTDIR
:
"
"
CI_REF
:
&ref
439cec9548425401680cbc2b56b1e79525bd64d4
include
:
include
:
# BEFORE SCRIPT
# BEFORE SCRIPT
...
@@ -28,15 +27,6 @@ include:
...
@@ -28,15 +27,6 @@ include:
file
:
"
empty-build.yml"
file
:
"
empty-build.yml"
ref
:
*ref
ref
:
*ref
# TEST
-
project
:
"
templates/ci-snippets"
file
:
"
simple-website/tidy.yml"
ref
:
*ref
-
project
:
"
templates/ci-snippets"
file
:
"
simple-website/blc.yml"
ref
:
*ref
# BUILD-REVIEW
# BUILD-REVIEW
-
project
:
"
templates/ci-snippets"
-
project
:
"
templates/ci-snippets"
file
:
"
simple-website/review/build-review.yml"
file
:
"
simple-website/review/build-review.yml"
...
@@ -51,27 +41,14 @@ include:
...
@@ -51,27 +41,14 @@ include:
file
:
"
simple-website/review/stop-review.yml"
file
:
"
simple-website/review/stop-review.yml"
ref
:
*ref
ref
:
*ref
# CODE QUALITY
# TEST
# - project: 'templates/ci-snippets'
-
project
:
"
templates/ci-snippets"
# file: 'quality-security/code-quality.yml'
file
:
"
simple-website/blc.yml"
ref
:
*ref
# - project: 'templates/ci-snippets'
# file: 'quality-security/sast.yml'
# - project: 'templates/ci-snippets'
# file: 'quality-security/deps-scan.yml'
# - project: 'templates/ci-snippets'
# file: 'quality-security/container-scan.yml'
# - project: 'templates/ci-snippets'
# file: 'quality-security/dast.yml'
# - project: 'templates/ci-snippets'
# file: 'quality-security/license-check.yml'
# - project: 'templates/ci-snippets'
-
project
:
"
templates/ci-snippets"
# file: 'quality-security/performance.yml'
file
:
"
simple-website/tidy.yml"
ref
:
*ref
# RELEASE
# RELEASE
-
project
:
"
templates/ci-snippets"
-
project
:
"
templates/ci-snippets"
...
@@ -86,3 +63,61 @@ include:
...
@@ -86,3 +63,61 @@ include:
-
project
:
"
templates/ci-snippets"
-
project
:
"
templates/ci-snippets"
file
:
"
trigger-websites-deploy.yml"
file
:
"
trigger-websites-deploy.yml"
ref
:
*ref
ref
:
*ref
-
template
:
Verify/Browser-Performance.gitlab-ci.yml
-
template
:
DAST.gitlab-ci.yml
performance
:
stage
:
test
variables
:
GIT_STRATEGY
:
none
SITESPEED_OPTIONS
:
-n 1 -d 2 --visualMetrics
false
--video
false
URL
:
https://$CI_BUILD_REF_NAME-$CI_PROJECT_NAME.review.dbogatov.org/
except
:
-
pipelines
-
triggers
when
:
manual
tags
:
-
docker
dast
:
stage
:
test
variables
:
DAST_WEBSITE
:
https://$CI_BUILD_REF_NAME-$CI_PROJECT_NAME.review.dbogatov.org
DAST_FULL_SCAN_ENABLED
:
"
true"
except
:
-
pipelines
-
triggers
when
:
manual
tags
:
-
docker
# https://gitlab.com/gitlab-org/gitlab/-/raw/master/lib/gitlab/ci/templates/Verify/Accessibility.gitlab-ci.yml
accessibility
:
stage
:
test
image
:
node
variables
:
GIT_STRATEGY
:
none
a11y_urls
:
https://$CI_BUILD_REF_NAME-$CI_PROJECT_NAME.review.dbogatov.org
script
:
-
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
-
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \
-
apt-get update && \
-
apt-get install -y google-chrome-stable && \
-
rm -rf /var/lib/apt/lists/*
-
npm install pa11y@5.3.0 pa11y-reporter-html@1.0.0
-
'
echo
{
\"chromeLaunchConfig\":
{
\"args\":
[\"--no-sandbox\"]
},
\"includeWarnings\":
true,
\"reporter\":
\"html\"
}
>
pa11y.json'
-
"
./node_modules/.bin/pa11y
$a11y_urls
>
accessibility.html
||
true"
-
test -f accessibility.html
allow_failure
:
true
artifacts
:
when
:
always
expose_as
:
"
accessibility"
paths
:
[
"
accessibility.html"
]
except
:
-
pipelines
-
triggers
when
:
manual
tags
:
-
docker
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