Skip to content

Commit

Permalink
exclude supply in fastlane and limit flavors being built in .travis.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Derick Lung'aho committed Jun 3, 2020
1 parent 563e54b commit 42a9d28
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 71 deletions.
72 changes: 18 additions & 54 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ dist: trusty # Android builds are only supported on our Trusty image
jdk: oraclejdk8
android:
components:
- tools
- platform-tools
- extra-android-m2repository
- build-tools-28.0.2
- android-28
- tools
- platform-tools
- extra-android-m2repository
- build-tools-28.0.2
- android-28
env:
- GRADLE_OPTS="-XX:MaxPermSize=2048M"
- GRADLE_OPTS="-XX:MaxPermSize=2048M"
stages:
- name: test
- name: deploy
Expand All @@ -18,59 +18,24 @@ jobs:
include:
- stage: test
script: make test

- stage: deploy
# flavors sorted alphabetically with three per job
# flavors sorted alphabetically with three per job
script:
- fastlane deploy flavor:unbranded
- fastlane deploy flavor:medicmobiledemo
- fastlane deploy flavor:bracuganda
- script:
- fastlane deploy flavor:cic_guatemala
- fastlane deploy flavor:cmmb_kenya
- fastlane deploy flavor:ebpp_indonesia
- fastlane deploy flavor:hope_through_health
- script:
- fastlane deploy flavor:livinggoods
- fastlane deploy flavor:livinggoodskenya
- fastlane deploy flavor:livinggoods_assisted_networks
- script:
- fastlane deploy flavor:livinggoods_innovation_ke
- fastlane deploy flavor:livinggoods_innovation_ke_supervisor
- fastlane deploy flavor:livinggoods_innovation_ke_hivst
- script:
# - fastlane deploy flavor:moh_kenya_siaya_white
- fastlane deploy flavor:moh_kenya_siaya_red
- fastlane deploy flavor:moh_kenya_siaya_green
- fastlane deploy flavor:moh_kenya_siaya_black
- fastlane deploy flavor:moh_mali
- script:
- fastlane deploy flavor:moh_zanzibar_training
- fastlane deploy flavor:moh_zanzibar
- script:
- fastlane deploy flavor:musomali
- fastlane deploy flavor:pih_malawi
- fastlane deploy flavor:pih_malawi_supervisor
- script:
- fastlane deploy flavor:simprints
- fastlane deploy flavor:surveillance_covid19_kenya
- fastlane deploy flavor:vhw_burundi
- script:
- fastlane deploy flavor:zazic_scale_up_dev
- script:
- fastlane deploy flavor:zazic_scale_up_dev
before_install:
- openssl aes-256-cbc -K $encrypted_323c4a109760_key -iv $encrypted_323c4a109760_iv -in secrets.tar.gz.enc -out ./secrets.tar.gz -d
- tar -xf ./secrets.tar.gz
- gem update --system
- gem install fastlane --no-document --quiet
- openssl aes-256-cbc -K $encrypted_323c4a109760_key -iv $encrypted_323c4a109760_iv -in secrets.tar.gz.enc -out ./secrets.tar.gz -d
- tar -xf ./secrets.tar.gz
- gem update --system
- gem install fastlane --no-document --quiet
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
- "$HOME/.android/build-cache"
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
- "$HOME/.android/build-cache"
deploy:
provider: releases
skip_cleanup: true
Expand All @@ -82,4 +47,3 @@ deploy:
on:
tags: true
repo: medic/medic-android
branch: master
17 changes: 0 additions & 17 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,5 @@ platform :android do
package_name = options[:flavor] == 'unbranded' ? "org.medicmobile.webapp.mobile" : "org.medicmobile.webapp.mobile.#{options[:flavor]}"

gradle(task: gradleTaskName)

supply(
package_name: package_name,
track: "alpha",
json_key: "playstore-secret.json",
apk_paths: [
"build/outputs/apk/#{options[:flavor]}/release/medic-android-#{version}-#{options[:flavor]}-arm64-v8a-release.apk",
"build/outputs/apk/#{options[:flavor]}/release/medic-android-#{version}-#{options[:flavor]}-armeabi-v7a-release.apk",
],
skip_upload_aab: true,
skip_upload_metadata: true,
skip_upload_images: true,
skip_upload_screenshots: true,
validate_only: false,

timeout: 3600,
)
end
end

0 comments on commit 42a9d28

Please sign in to comment.