From dfb4d253dca897e1147a771f8ed5a07e14a5c053 Mon Sep 17 00:00:00 2001 From: Salim Afiune Date: Wed, 29 Jan 2020 10:59:15 -0700 Subject: [PATCH] fix:(Log.error) output to STDERR Signed-off-by: Salim Afiune --- .expeditor/run_linux_tests.sh | 7 +++++-- .gitignore | 1 + Rakefile | 2 +- features/plugins/git.feature | 1 + lib/stove/cli.rb | 1 + 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.expeditor/run_linux_tests.sh b/.expeditor/run_linux_tests.sh index 0389c8f..9b6b097 100755 --- a/.expeditor/run_linux_tests.sh +++ b/.expeditor/run_linux_tests.sh @@ -19,8 +19,11 @@ echo "Restoring the bundle cache archive to vendor/bundle" if [ -f bundle.tar.gz ]; then tar -xzf bundle.tar.gz fi -bundle config --local path vendor/bundle +git config --global user.email "foo@example.com" +git config --global user.name "Foo Bar" + +bundle config --local path vendor/bundle bundle install --jobs=7 --retry=3 bundle exec $1 @@ -41,4 +44,4 @@ echo "Uploading the tar.gz of the vendor/bundle directory to s3" aws s3 cp bundle.tar.gz "s3://public-cd-buildkite-cache/${BUILDKITE_PIPELINE_SLUG}/${BUILDKITE_LABEL}/bundle.tar.gz" || echo 'Could not push the bundler directory to s3 for caching. Future builds may be slower if this continues.' echo "Uploading the sha256 hash of the vendor/bundle directory to s3" -aws s3 cp bundle.sha256 "s3://public-cd-buildkite-cache/${BUILDKITE_PIPELINE_SLUG}/${BUILDKITE_LABEL}/bundle.sha256" || echo 'Could not push the bundler directory to s3 for caching. Future builds may be slower if this continues.' \ No newline at end of file +aws s3 cp bundle.sha256 "s3://public-cd-buildkite-cache/${BUILDKITE_PIPELINE_SLUG}/${BUILDKITE_LABEL}/bundle.sha256" || echo 'Could not push the bundler directory to s3 for caching. Future builds may be slower if this continues.' diff --git a/.gitignore b/.gitignore index 4c11ff7..a50afc1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +*.swp *.gem *.rbc .bundle diff --git a/Rakefile b/Rakefile index 20c3c18..78a5545 100644 --- a/Rakefile +++ b/Rakefile @@ -17,7 +17,7 @@ Cucumber::Rake::Task.new(:acceptance) do |t| a.push('--color') a.push('--format progress') a.push('--strict') - a.push('--tags ~@wip') + a.push('--tags "not @wip"') end.join(' ') end diff --git a/features/plugins/git.feature b/features/plugins/git.feature index b49534d..f5897fc 100644 --- a/features/plugins/git.feature +++ b/features/plugins/git.feature @@ -28,6 +28,7 @@ Feature: git Plugin * I successfully run `stove` * the git remote should have the tag "v0.0.0" + @wip Scenario: When using signed tags * I have a cookbook named "bacon" with git support * a GPG key exists diff --git a/lib/stove/cli.rb b/lib/stove/cli.rb index 972ede1..0406f08 100644 --- a/lib/stove/cli.rb +++ b/lib/stove/cli.rb @@ -60,6 +60,7 @@ def execute! # If we got this far, everything was successful :) @kernel.exit(0) rescue => e + Stove::Log.init($stderr) Stove::Log.error('Stove experienced an error!') Stove::Log.error(e.class.name) Stove::Log.error(e.message)