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
5537ecbf
Verified
Commit
5537ecbf
authored
Jun 19, 2024
by
Beatriz Rizental
Committed by
Pier Angelo Vendrame
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Add CI for Tor Browser
parent
f3dc8741
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1453
TB 43587: Rebased legacy onto 115.22.0esr
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+5
-0
5 additions, 0 deletions
.gitlab-ci.yml
.gitlab/ci/update-translations.yml
+66
-0
66 additions, 0 deletions
.gitlab/ci/update-translations.yml
with
71 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
5
−
0
View file @
5537ecbf
stages
:
-
update-translations
include
:
-
local
:
'
.gitlab/ci/update-translations.yml'
This diff is collapsed.
Click to expand it.
.gitlab/ci/update-translations.yml
0 → 100644
+
66
−
0
View file @
5537ecbf
.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
register
or
sign in
to comment