Skip to content

Commit

Permalink
bitrise stack related update
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorbenei committed Sep 8, 2015
1 parent 4e33f23 commit f875ec1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.envstore.yml
.bitrise*
12 changes: 12 additions & 0 deletions bitrise.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
format_version: 1.0.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git

workflows:
test:
steps:
- path::./:
- script:
inputs:
- content: |-
#!/bin/bash
echo "RANDOM_QUOTE: ${RANDOM_QUOTE}"
6 changes: 1 addition & 5 deletions step.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ func main() {
// init / cleanup the formatted output
pth := os.Getenv("BITRISE_STEP_FORMATTED_OUTPUT_FILE_PATH")
markdownlog.Setup(pth)
err := markdownlog.ClearLogFile()
if err != nil {
fmt.Errorf("Failed to clear log file, err: %s", err)
}

// request
urlString := "http://api.icndb.com/jokes/random"
Expand Down Expand Up @@ -89,7 +85,7 @@ func main() {
os.Exit(1)
}

err := RunPipedEnvmanAdd("quote", joke)
err := RunPipedEnvmanAdd("RANDOM_QUOTE", joke)
if err != nil {
errorMessageToOutput(fmt.Sprintf("Failed to add output to envman, err: %s", err))
os.Exit(1)
Expand Down
2 changes: 1 addition & 1 deletion step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies:
run_if: ""
inputs: []
outputs:
- quote:
- RANDOM_QUOTE:
opts:
title: the quote
summary: ""
Expand Down

0 comments on commit f875ec1

Please sign in to comment.