Skip to content
Snippets Groups Projects
Commit 16478433 authored by David Byers's avatar David Byers
Browse files

Added beta and release build stages for edge

parent 9b89ae23
No related branches found
No related tags found
2 merge requests!8Beta,!5Resolve "Build for edge"
Pipeline #33508 passed
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment