Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
safelinks-cleaner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
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
safelinks
safelinks-cleaner
Commits
16478433
Commit
16478433
authored
4 years ago
by
David Byers
Browse files
Options
Downloads
Patches
Plain Diff
Added beta and release build stages for edge
parent
9b89ae23
No related branches found
No related tags found
2 merge requests
!8
Beta
,
!5
Resolve "Build for edge"
Pipeline
#33508
passed
4 years ago
Stage: prepare
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+52
-0
52 additions, 0 deletions
.gitlab-ci.yml
with
52 additions
and
0 deletions
.gitlab-ci.yml
+
52
−
0
View file @
16478433
...
@@ -16,9 +16,11 @@ stages:
...
@@ -16,9 +16,11 @@ stages:
# ========================================================================
# Stage: prepare
# Stage: prepare
#
#
# Builds unpacked extensions from the source files.
# Builds unpacked extensions from the source files.
# ========================================================================
.prepare
:
.prepare
:
stage
:
prepare
stage
:
prepare
...
@@ -53,9 +55,53 @@ prepare:release:
...
@@ -53,9 +55,53 @@ prepare:release:
<<
:
*release_rules
<<
:
*release_rules
# ========================================================================
# Stage: build
# Stage: build
#
#
# Builds packages from the prepared unpacked extensions.
# Builds packages from the prepared unpacked extensions.
# ========================================================================
#
# Build for Edge
#
.build:edge
:
stage
:
build
image
:
python:3.7-stretch
script
:
-
apt-get -y update
-
apt-get -y install zip
-
cd build/edge
-
zip -r ../../safelinks-cleaner-edge-$VARIANT.xpi *
artifacts
:
paths
:
-
safelinks-cleaner-edge-$VARIANT.xpi
build:edge:beta
:
extends
:
.build:edge
variables
:
VARIANT
:
beta
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"push"
&&
$CI_COMMIT_BRANCH
==
"beta"'
changes
:
-
shared/**/*
-
firefox/**/*
-
edge/**/*
when
:
always
-
if
:
'
$CI_COMMIT_MESSAGE
=~
/#force-build:(all|edge)/
&&
$CI_COMMIT_BRANCH
==
"beta"'
when
:
always
-
when
:
never
build:edge:release
:
extends
:
.build:thunderbird
variables
:
VARIANT
:
release
<<
:
*release_rules
#
# Build for Firefox
#
.build:firefox
:
.build:firefox
:
stage
:
build
stage
:
build
...
@@ -97,6 +143,10 @@ build:firefox:release:
...
@@ -97,6 +143,10 @@ build:firefox:release:
<<
:
*release_rules
<<
:
*release_rules
#
# Build for Thunderbird
#
.build:thunderbird
:
.build:thunderbird
:
stage
:
build
stage
:
build
image
:
python:3.7-stretch
image
:
python:3.7-stretch
...
@@ -130,9 +180,11 @@ build:thunderbird:release:
...
@@ -130,9 +180,11 @@ build:thunderbird:release:
<<
:
*release_rules
<<
:
*release_rules
# ========================================================================
# Stage: collect/deploy
# Stage: collect/deploy
#
#
# Wait for build artifacts then deploy new beta version to pages.
# Wait for build artifacts then deploy new beta version to pages.
# ========================================================================
collect
:
collect
:
stage
:
collect
stage
:
collect
...
...
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