This commit is contained in:
Stefan Schueller 2020-07-12 17:30:40 +02:00
parent 12819f2ad6
commit a33508e68f
2 changed files with 13 additions and 4 deletions

View File

@ -38,7 +38,8 @@ ensureContainer:
- docker manifest inspect $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG > /dev/null && exit || true - docker manifest inspect $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG > /dev/null && exit || true
.build_job: .build_job:
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG # image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
image: opengamer/android-sdk-gradle-fastlane
stage: build stage: build
before_script: before_script:
# We store this binary file in a variable as hex with this command, `xxd -p thorium-android-app.jks` # We store this binary file in a variable as hex with this command, `xxd -p thorium-android-app.jks`
@ -79,7 +80,8 @@ buildRelease:
name: production name: production
testDebug: testDebug:
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG # image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
image: opengamer/android-sdk-gradle-fastlane
stage: test stage: test
dependencies: dependencies:
- buildDebug - buildDebug
@ -87,7 +89,8 @@ testDebug:
- bundle exec fastlane test - bundle exec fastlane test
publishInternal: publishInternal:
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG # image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
image: opengamer/android-sdk-gradle-fastlane
stage: internal stage: internal
dependencies: dependencies:
- buildRelease - buildRelease
@ -100,7 +103,8 @@ publishInternal:
- bundle exec fastlane internal - bundle exec fastlane internal
.promote_job: .promote_job:
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG # image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
image: opengamer/android-sdk-gradle-fastlane
when: manual when: manual
dependencies: [] dependencies: []
before_script: before_script:

View File

@ -19,6 +19,11 @@ default_platform(:android)
platform :android do platform :android do
desc "Builds the debug code"
lane :buildDebug do
gradle(task: "assembleDebug")
end
desc "Builds the release code" desc "Builds the release code"
lane :buildRelease do lane :buildRelease do
gradle(task: "assembleRelease") gradle(task: "assembleRelease")