brizental pushed to branch mullvad-browser-140.2.0esr-15.0-1 at The Tor Project 
/ Applications / Mullvad Browser


Commits:
081b9f68 by Beatriz Rizental at 2025-09-09T13:10:41+02:00
fixup! Add CI for Base Browser

- - - - -


5 changed files:

- .gitlab-ci.yml
- .gitlab/ci/jobs/lint/helpers.py → .gitlab/ci/jobs/helpers.py
- .gitlab/ci/jobs/lint/lint.yml
- + .gitlab/ci/jobs/test/python-test.yml
- .gitlab/ci/jobs/update-translations.yml


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -1,5 +1,6 @@
 stages:
   - lint
+  - test
   - update-translations
 
 variables:
@@ -9,4 +10,5 @@ variables:
 include:
   - local: '.gitlab/ci/mixins.yml'
   - local: '.gitlab/ci/jobs/lint/lint.yml'
+  - local: '.gitlab/ci/jobs/test/python-test.yml'
   - local: '.gitlab/ci/jobs/update-translations.yml'


=====================================
.gitlab/ci/jobs/lint/helpers.py → .gitlab/ci/jobs/helpers.py
=====================================
@@ -112,7 +112,7 @@ if __name__ == "__main__":
     parser.add_argument(
         "--get-changed-files",
         help="Get list of changed files."
-        "When running from a merge request get sthe list of changed files 
since the merge-base of the current branch."
+        "When running from a merge request gets the list of changed files 
since the merge-base of the current branch."
         "When running from a protected branch i.e. any branch that starts with 
<something>-browser-, gets the list of files changed since the FIREFOX_ tag.",
         action="store_true",
     )


=====================================
.gitlab/ci/jobs/lint/lint.yml
=====================================
@@ -18,7 +18,7 @@ lint-all:
     - firefox
   script:
     - ./mach configure --with-base-browser-version=0.0.0
-    - .gitlab/ci/jobs/lint/helpers.py --get-changed-files | xargs -0 
--no-run-if-empty ./mach lint -v
+    - .gitlab/ci/jobs/helpers.py --get-changed-files | xargs -0 
--no-run-if-empty ./mach lint -v
   rules:
     - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
     # Run job whenever a commit is merged to a protected branch


=====================================
.gitlab/ci/jobs/test/python-test.yml
=====================================
@@ -0,0 +1,24 @@
+python-test:
+  extends: .with-local-repo-bash
+  stage: test
+  image: $IMAGE_PATH
+  interruptible: true
+  variables:
+    MOZBUILD_STATE_PATH: "/var/tmp/mozbuild"
+  cache:
+    paths:
+      - node_modules
+    # Store the cache regardless on job outcome
+    when: 'always'
+    # Share the cache throughout all pipelines running for a given branch
+    key: $CI_COMMIT_REF_SLUG
+  tags:
+    # Run these jobs in the browser dedicated runners.
+    - firefox
+  script:
+    - ./mach configure --with-base-browser-version=0.0.0
+    - .gitlab/ci/jobs/helpers.py --get-changed-files | xargs -0 
--no-run-if-empty ./mach python-test -v
+  rules:
+    - if: $CI_PIPELINE_SOURCE == 'merge_request_event' || ($CI_COMMIT_BRANCH 
&& $CI_COMMIT_REF_PROTECTED == 'true' && $CI_PIPELINE_SOURCE == 'push')
+      changes:
+        - "**/test_*.py"


=====================================
.gitlab/ci/jobs/update-translations.yml
=====================================
@@ -81,7 +81,7 @@ combine-en-US-translations:
     # push-en-US-translations job.
     - echo 'COMBINE_TRANSLATIONS_JOB_ID='"$CI_JOB_ID" >job_id.env
     - pip install compare_locales
-    - python ./tools/base-browser/l10n/combine-translation-versions.py 
"$CI_COMMIT_BRANCH" "$TRANSLATION_FILES" "$COMBINED_FILES_JSON"
+    - python ./tools/base_browser/l10n/combine-translation-versions.py 
"$CI_COMMIT_BRANCH" "$TRANSLATION_FILES" "$COMBINED_FILES_JSON"
 
 push-en-US-translations:
   extends: .update-translation-base



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/081b9f684ed9e122b3adf5c28016c5b2da3f327d

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/081b9f684ed9e122b3adf5c28016c5b2da3f327d
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tor-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to