Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Tor Browser
Commits
ca83592b
Commit
ca83592b
authored
Mar 5, 2024
by
henry
Committed by
Pier Angelo Vendrame
Mar 12, 2024
Browse files
Options
Downloads
Patches
Plain Diff
Add CI for Tor Browser
parent
0b50e237
Loading
Loading
1 merge request
!941
Bug 42449: Rebase Tor Browser alpha onto Firefox 115.9.0esr
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+69
-0
69 additions, 0 deletions
.gitlab-ci.yml
with
69 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
69
−
0
View file @
ca83592b
stages
:
-
update-translations
.update-translation-base
:
stage
:
update-translations
rules
:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes
:
-
"
**/*.ftl"
-
"
**/*.properties"
-
"
**/*.dtd"
-
if
:
$FORCE_UPDATE_TRANSLATIONS == "true"
variables
:
TOR_BROWSER_COMBINED_FILES_JSON
:
"
combined-translation-files.json"
combine-en-US-translations
:
extends
:
.update-translation-base
image
:
python
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
TRANSLATION_FILES
:
'
tor-browser:tor-browser.ftl
tor-browser:aboutDialog.dtd
tor-browser:aboutTBUpdate.dtd
tor-browser:aboutTor.dtd
tor-browser:torbutton.dtd
tor-browser:browserOnboarding.properties
tor-browser:cryptoSafetyPrompt.properties
tor-browser:onboarding.properties
tor-browser:onionLocation.properties
tor-browser:rulesets.properties
tor-browser:settings.properties
tor-browser:torbutton.properties
tor-browser:torConnect.properties
tor-browser:torlauncher.properties
base-browser:base-browser.ftl
base-browser:newIdentity.properties
base-browser:securityLevel.properties
'
cache
:
paths
:
-
.cache/pip
# Artifact is for translation project job
artifacts
:
paths
:
-
"
$TOR_BROWSER_COMBINED_FILES_JSON"
expire_in
:
"
60
min"
reports
:
dotenv
:
job_id.env
# Don't load artifacts for this job.
dependencies
:
[]
script
:
# Save this CI_JOB_ID to the dotenv file to be used in the variables for the
# push-en-US-translations job.
-
echo 'COMBINE_TRANSLATIONS_JOB_ID='"$CI_JOB_ID" >job_id.env
-
pip install compare_locales
-
python ./tools/torbrowser/l10n/combine-translation-versions.py "$CI_COMMIT_BRANCH" "$TRANSLATION_FILES" "$TOR_BROWSER_COMBINED_FILES_JSON"
push-en-US-translations
:
extends
:
.update-translation-base
needs
:
-
job
:
combine-en-US-translations
variables
:
TOR_BROWSER_COMBINED_FILES_JSON_URL
:
"
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/jobs/${COMBINE_TRANSLATIONS_JOB_ID}/artifacts/${TOR_BROWSER_COMBINED_FILES_JSON}"
trigger
:
strategy
:
depend
project
:
tor-browser-translation-bot/translation
branch
:
tor-browser-ci
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
sign in
to comment