Skip to content

Instantly share code, notes, and snippets.

Avatar

BB bbedward

  • Cleveland, OH
View GitHub Profile
View .gitlab-ci.yml
stages:
- test
- update
- build
- deploy
tests:
stage: test
only:
- master
View .gitlab-ci_snippet.yaml
prod:android:deploy:
stage: deploy
tags:
- appditto_mac
script:
- cd android
- bundle exec fastlane deploy_android production:true
when: manual
dependencies:
- android:build
View .gitlab-ci_snippet.yml
android:build:
stage: build
tags:
- appditto_mac
script:
# Flutter local configuration
- echo flutter.sdk=$FLUTTER_PATH > android/local.properties
- echo sdk.dir=$ANDROID_SDK_PATH >> android/local.properties
- echo flutter.buildMode=release >> android/local.properties
# Android signing
View .gitlab-ci_snippet.yml
update:
stage: update
only:
- master
tags:
- appditto_mac
script:
- flutter packages get
- flutter packages upgrade
interruptible: true
View .gitlab-ci_snipped.yml
tests:
stage: test
only:
- master
tags:
- appditto_mac
script:
- flutter test
interruptible: true
View .gitlab-ci_snippet.yml
stages:
- test
- update
- build
- deploy
@bbedward
bbedward / Deliverfile
Created Nov 12, 2019
Fastlane+Flutter tutorial
View Deliverfile
release_notes({
'default' => File.read('./fastlane/metadata/en-US/release_notes.txt'),
'en-US' => File.read('./fastlane/metadata/en-US/release_notes.txt')
});
submission_information({
add_id_info_serves_ads: false,
add_id_info_tracks_action: false,
add_id_info_tracks_install: false,
add_id_info_uses_idfa: false,
@bbedward
bbedward / Fastfile_ios.rb
Last active Nov 14, 2019
CI/CD In Flutter using GitLab and Fastlane Tutorial
View Fastfile_ios.rb
# Automatically update fastlane
update_fastlane
default_platform(:ios)
# Default temporary keychain password and name, if not included from environment
TEMP_KEYCHAIN_NAME_DEFAULT = "fastlane_flutter"
TEMP_KEYCHAN_PASSWORD_DEFAULT = "temppassword"
# Remove the temporary keychain, if it exists
@bbedward
bbedward / flutter_test_ios.sh
Last active Nov 12, 2019
Flutter Fastlane Gitlab Tutorial
View flutter_test_ios.sh
#!/bin/bash
cd ../../
echo "Running tests"
flutter test
@bbedward
bbedward / flutter_build_ios.sh
Last active Nov 12, 2019
Appditto Flutter+Fastlane+GitLab Tutorial
View flutter_build_ios.sh
#!/bin/bash
cd ../../
if [ "$1" == "--clean" ]
then
echo "Running clean..."
flutter clean
else
echo "Skipping clean..."
fi
flutter build ios --release --no-codesign
You can’t perform that action at this time.