From a33508e68f5ab97aa7c3edf69f150f789597da38 Mon Sep 17 00:00:00 2001 From: Stefan Schueller Date: Sun, 12 Jul 2020 17:30:40 +0200 Subject: [PATCH] Fastlane --- .gitlab-ci.yml | 12 ++++++++---- fastlane/Fastfile | 5 +++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f7d3649..4b7d56e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,7 +38,8 @@ ensureContainer: - docker manifest inspect $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG > /dev/null && exit || true .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 before_script: # 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 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 dependencies: - buildDebug @@ -87,7 +89,8 @@ testDebug: - bundle exec fastlane test 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 dependencies: - buildRelease @@ -100,7 +103,8 @@ publishInternal: - bundle exec fastlane internal .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 dependencies: [] before_script: diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 0517a0c..f1bb16e 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -19,6 +19,11 @@ default_platform(:android) platform :android do + desc "Builds the debug code" + lane :buildDebug do + gradle(task: "assembleDebug") + end + desc "Builds the release code" lane :buildRelease do gradle(task: "assembleRelease")