Loading .gitlab-ci.yml 0 → 100644 +39 −0 Original line number Diff line number Diff line image: seanghay/android-ci before_script: - chmod +x ./gradlew # Basic android and gradle stuff # Check linting lintRelease: interruptible: true stage: build script: - ./gradlew -Pci --console=plain :app:lintAnalyzeFdroidRelease -PbuildDir=lint artifacts: paths: - app/lint/reports/lint-results-release.html expose_as: "lint-report" when: always # Make Project assembleRelease: interruptible: true stage: build script: - echo "sdk.dir=$ANDROID_HOME" > local.properties - echo "ndk.dir=$ANDROID_NDK_HOME" >> local.properties - ./gradlew assembleRelease artifacts: paths: - app/build/outputs/ # Run all tests, if any fails, interrupt the pipeline(fail it) releaseTests: needs: [lintRelease, assembleRelease] interruptible: true stage: test script: - echo "sdk.dir=$ANDROID_HOME" > local.properties - echo "ndk.dir=$ANDROID_NDK_HOME" >> local.properties - ./gradlew -Pci --console=plain :app:testRelease No newline at end of file Loading
.gitlab-ci.yml 0 → 100644 +39 −0 Original line number Diff line number Diff line image: seanghay/android-ci before_script: - chmod +x ./gradlew # Basic android and gradle stuff # Check linting lintRelease: interruptible: true stage: build script: - ./gradlew -Pci --console=plain :app:lintAnalyzeFdroidRelease -PbuildDir=lint artifacts: paths: - app/lint/reports/lint-results-release.html expose_as: "lint-report" when: always # Make Project assembleRelease: interruptible: true stage: build script: - echo "sdk.dir=$ANDROID_HOME" > local.properties - echo "ndk.dir=$ANDROID_NDK_HOME" >> local.properties - ./gradlew assembleRelease artifacts: paths: - app/build/outputs/ # Run all tests, if any fails, interrupt the pipeline(fail it) releaseTests: needs: [lintRelease, assembleRelease] interruptible: true stage: test script: - echo "sdk.dir=$ANDROID_HOME" > local.properties - echo "ndk.dir=$ANDROID_NDK_HOME" >> local.properties - ./gradlew -Pci --console=plain :app:testRelease No newline at end of file