From d34225eaaac579d19ddfc644b6b4d28f18d229dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krisztia=CC=81n=20Go=CC=88drei?= Date: Tue, 12 Jul 2016 12:54:35 +0200 Subject: [PATCH 1/3] changelog update --- CHANGELOG.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index beb975c7..e58d9bb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,8 +6,15 @@ ### Release Notes -* __BREAKING__ : change 1 -* change 2 +* __BREAKING__ : every command's short version has been removed. +* __BREAKING__ : `step-info` command's `collection` flag is required. +* __NEW COMMAND__ : `export-spec` - Export the generated StepLib spec, use `export-type` flag to specify the export type. + Export type options: + + - `full` : exports the full StepLib spec + - `latest` : exported spec only contains steps with latest versions + - `minimal` : exported spec's steps field only contains the step-ids +* Improved logging in `stepman update` command ### Install or upgrade From 40c85174e1ccb055562ef75314b54ff9ab0f4b4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krisztia=CC=81n=20Go=CC=88drei?= Date: Tue, 12 Jul 2016 14:18:54 +0200 Subject: [PATCH 2/3] exist status fix --- cli/cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cli.go b/cli/cli.go index ed0bcd47..0464a6ab 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -65,6 +65,6 @@ func Run() { app.Commands = commands if err := app.Run(os.Args); err != nil { - log.Error(err) + log.Fatal(err) } } From d8cca3ac7e80e8a55a1c0d00f5534f55b02a2105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krisztia=CC=81n=20Go=CC=88drei?= Date: Tue, 12 Jul 2016 14:29:43 +0200 Subject: [PATCH 3/3] exist status test --- bitrise.yml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/bitrise.yml b/bitrise.yml index acbb18c8..a7dbdc90 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -114,6 +114,56 @@ workflows: exit 1 fi done <<< "$GOLIST_WITHOUT_VENDOR" + - script: + title: Go build + inputs: + - content: |- + #!/bin/bash + set -e + set -x + + # build the new stepman + current_dir=$(pwd) + current_stepman=$current_dir/_tmp/ci-bin + go build -o $current_stepman + + envman add --key CURRENT_STEPMAN --value $current_stepman + - script: + title: Exit code test + inputs: + - content: |- + #!/bin/bash + set -x + + # default setup - desired exit code: 0 + $CURRENT_STEPMAN setup --collection https://github.com/bitrise-io/bitrise-steplib.git + if [ $? -ne 0 ] ; then + exit 1 + fi + + # latest version - desired exit code: 0 + $CURRENT_STEPMAN step-info --collection https://github.com/bitrise-io/bitrise-steplib.git --id script + if [ $? -ne 0 ] ; then + exit 1 + fi + + # latest version, json format - desired exit code: 0 + $CURRENT_STEPMAN step-info --collection https://github.com/bitrise-io/bitrise-steplib.git --id script --format json + if [ $? -ne 0 ] ; then + exit 1 + fi + + # invalid version -1 - desired exit code: NOT 0 + $CURRENT_STEPMAN step-info --collection https://github.com/bitrise-io/bitrise-steplib.git --id script --version -1 + if [ $? -eq 0 ] ; then + exit 1 + fi + + # invalid version -1, json format - desired exit code: NOT 0 + $CURRENT_STEPMAN step-info --collection https://github.com/bitrise-io/bitrise-steplib.git --id script --version -1 --format json + if [ $? -eq 0 ] ; then + exit 1 + fi # ---------------------------------------------------------------- # --- workflows for Releasing