Loading .gitlab-ci.yml +2 −0 Original line number Diff line number Diff line stages: - lint - test - update-translations variables: Loading @@ -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 +1 −1 File changed and moved.Contains only whitespace changes. Show changes .gitlab/ci/jobs/lint/lint.yml +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading .gitlab/ci/jobs/test/python-test.yml 0 → 100644 +24 −0 Original line number Diff line number Diff line 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 +1 −1 Original line number Diff line number Diff line Loading @@ -39,7 +39,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 Loading Loading
.gitlab-ci.yml +2 −0 Original line number Diff line number Diff line stages: - lint - test - update-translations variables: Loading @@ -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 +1 −1 File changed and moved.Contains only whitespace changes. Show changes
.gitlab/ci/jobs/lint/lint.yml +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
.gitlab/ci/jobs/test/python-test.yml 0 → 100644 +24 −0 Original line number Diff line number Diff line 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 +1 −1 Original line number Diff line number Diff line Loading @@ -39,7 +39,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 Loading