-
-
Save joshdholtz/cd077ccdddb608af00eb2466259e7ac0 to your computer and use it in GitHub Desktop.
Revisions
-
Josh Holtz renamed this gist
Aug 3, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Josh Holtz revised this gist
Aug 3, 2017 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ fastlane_require 'dotenv' before_all do Dotenv.overload '.env.secret' end -
Josh Holtz created this gist
Aug 3, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ STUFF = this is some stuff This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ CONFIG = this is config 1 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ CONFIG = this is config 2 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ SOME_API_TOKEN = 123456789 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ .env.secret This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ fastlane_require 'dotenv' before_all do Dotenv.overload '.env.secret' end lane :test do # Loaded from .env (by fastlane) puts "STUFF: #{ENV['STUFF']}" # Loaded from .env.secret (by us in before_all) puts "SOME_API_TOKEN: #{ENV['SOME_API_TOKEN']}" # Loaded from .env.(<env>) where <env> is passed in from `fastlane test --env <env>` (by fastlane) # Ex: `fastlane test --env config` loads .env.config1 puts "CONFIG: #{ENV['CONFIG']}" end This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ $: fastlane test STUFF: this is some stuff SOME_API_TOKEN: 123456789 CONFIG: $: fastlane test --env config1 STUFF: this is some stuff SOME_API_TOKEN: 123456789 CONFIG: this is config 1 $: fastlane test --env config2 STUFF: this is some stuff SOME_API_TOKEN: 123456789 CONFIG: this is config 2