Skip to content

Commit

Permalink
Fix fastlane command envs. (#68)
Browse files Browse the repository at this point in the history
* Fix fastlane command envs.

* Reorder test cases.

* Test on sample project's master branch.
  • Loading branch information
godrei authored Jan 15, 2021
1 parent 54a46e0 commit ff9e537
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,15 @@ workflows:
- content: |-
set -ex
git clone $SAMPLE_APP_URL -b $BRANCH .
- path::./:
title: Test if Fastlane receives session-based Apple Developer connection
inputs:
- lane: test_fastlane_session
- work_dir: ./
- verbose_log: "yes"
- certificate-and-profile-installer:
- path::./:
title: Test building a Flutter project
inputs:
- lane: build
- work_dir: ./
Expand Down
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,17 +282,18 @@ func main() {

cmd.SetStdout(os.Stdout).SetStderr(os.Stderr)
cmd.SetDir(workDir)
cmd.AppendEnvs(envs...)

buildlogPth := ""

if tempDir, err := pathutil.NormalizedOSTempDirPath("fastlane_logs"); err != nil {
log.Errorf("Failed to create temp dir for fastlane logs, error: %s", err)
} else {
buildlogPth = tempDir
cmd.AppendEnvs("FL_BUILDLOG_PATH=" + buildlogPth)
envs = append(envs, "FL_BUILDLOG_PATH="+buildlogPth)
}

cmd.AppendEnvs(envs...)

deployDir := os.Getenv("BITRISE_DEPLOY_DIR")
if deployDir == "" {
log.Warnf("No BITRISE_DEPLOY_DIR found")
Expand Down

0 comments on commit ff9e537

Please sign in to comment.