Loading .gitlab-ci.yml +14 −16 Original line number Diff line number Diff line Loading @@ -52,7 +52,6 @@ before_script: .build: stage: build allow_failure: false rules: *rules_merge_request_ref script: - ./gradlew testReleaseUnitTest jacocoReleaseReport -PtestAccountName="$testAccountName" -PtestAccountPwd="$testAccountPwd" -PtestServerUrl="$testServerUrl" lintRelease detekt assembleRelease --parallel --build-cache --configure-on-demand --no-daemon Loading @@ -72,6 +71,7 @@ before_script: build-release: extends: .build allow_failure: false cache: key: ${CI_PROJECT_ID} paths: Loading @@ -80,6 +80,7 @@ build-release: build-generate-cache: extends: .build allow_failure: true rules: - when: manual cache: Loading @@ -90,6 +91,12 @@ build-generate-cache: build-debug: stage: build cache: key: ${CI_PROJECT_ID} paths: - .gradle/ policy: pull allow_failure: true rules: - when: manual script: Loading @@ -100,28 +107,20 @@ build-debug: - app/build/reports/ - build/reports/ init_submodules: stage: build rules: *rules_protected_ref script: - | git clone https://gitlab.e.foundation/e/os/system-apps-update-info.git systemAppsUpdateInfo artifacts: paths: - systemAppsUpdateInfo/scripts/ generate-apks: stage: build rules: *rules_merge_request_ref rules: *rules_protected_ref allow_failure: true needs: - job: build-release - job: init_submodules script: - | git clone https://gitlab.e.foundation/e/os/system-apps-update-info.git systemAppsUpdateInfo ./systemAppsUpdateInfo/scripts/generate-apks.sh \ "$APK_PATH" "$UNSIGNED_APK" "$COMMUNITY_APK" "$OFFICIAL_APK" "$TEST_APK" artifacts: paths: - systemAppsUpdateInfo/scripts/ - $APK_PATH/$UNSIGNED_APK - $APK_PATH/$COMMUNITY_APK - $APK_PATH/$OFFICIAL_APK Loading @@ -131,7 +130,6 @@ create-json-files: stage: publish rules: *rules_protected_tag needs: - job: init_submodules - job: generate-apks script: - | Loading @@ -147,7 +145,7 @@ create-test-release: stage: publish rules: *rules_protected_tag_manual needs: - job: init_submodules - job: generate-apks - job: create-json-files artifacts: false script: Loading @@ -160,7 +158,7 @@ create-release: stage: publish rules: *rules_protected_tag_manual needs: - job: init_submodules - job: generate-apks - job: create-json-files artifacts: false script: Loading Loading
.gitlab-ci.yml +14 −16 Original line number Diff line number Diff line Loading @@ -52,7 +52,6 @@ before_script: .build: stage: build allow_failure: false rules: *rules_merge_request_ref script: - ./gradlew testReleaseUnitTest jacocoReleaseReport -PtestAccountName="$testAccountName" -PtestAccountPwd="$testAccountPwd" -PtestServerUrl="$testServerUrl" lintRelease detekt assembleRelease --parallel --build-cache --configure-on-demand --no-daemon Loading @@ -72,6 +71,7 @@ before_script: build-release: extends: .build allow_failure: false cache: key: ${CI_PROJECT_ID} paths: Loading @@ -80,6 +80,7 @@ build-release: build-generate-cache: extends: .build allow_failure: true rules: - when: manual cache: Loading @@ -90,6 +91,12 @@ build-generate-cache: build-debug: stage: build cache: key: ${CI_PROJECT_ID} paths: - .gradle/ policy: pull allow_failure: true rules: - when: manual script: Loading @@ -100,28 +107,20 @@ build-debug: - app/build/reports/ - build/reports/ init_submodules: stage: build rules: *rules_protected_ref script: - | git clone https://gitlab.e.foundation/e/os/system-apps-update-info.git systemAppsUpdateInfo artifacts: paths: - systemAppsUpdateInfo/scripts/ generate-apks: stage: build rules: *rules_merge_request_ref rules: *rules_protected_ref allow_failure: true needs: - job: build-release - job: init_submodules script: - | git clone https://gitlab.e.foundation/e/os/system-apps-update-info.git systemAppsUpdateInfo ./systemAppsUpdateInfo/scripts/generate-apks.sh \ "$APK_PATH" "$UNSIGNED_APK" "$COMMUNITY_APK" "$OFFICIAL_APK" "$TEST_APK" artifacts: paths: - systemAppsUpdateInfo/scripts/ - $APK_PATH/$UNSIGNED_APK - $APK_PATH/$COMMUNITY_APK - $APK_PATH/$OFFICIAL_APK Loading @@ -131,7 +130,6 @@ create-json-files: stage: publish rules: *rules_protected_tag needs: - job: init_submodules - job: generate-apks script: - | Loading @@ -147,7 +145,7 @@ create-test-release: stage: publish rules: *rules_protected_tag_manual needs: - job: init_submodules - job: generate-apks - job: create-json-files artifacts: false script: Loading @@ -160,7 +158,7 @@ create-release: stage: publish rules: *rules_protected_tag_manual needs: - job: init_submodules - job: generate-apks - job: create-json-files artifacts: false script: Loading