Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
Fix environment variable so CircleCI test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
vchudnov-g committed Nov 1, 2019
1 parent 302c5f8 commit 5f7c51b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,13 @@ anchor_test_ruby_client: &anchor_test_ruby_client
command: |
if [ -e ${RUBY_GEN_DIR}/google-cloud-${TEST_API} ]
then
echo "Testing ${TEST_API} in the ${LANGUAGE} language"
cd ${RUBY_GEN_DIR}/google-cloud-${TEST_API}
bundle update
bundle exec rake test
else
echo "Ruby ${TEST_API} library was not generated."
echo "Ruby ${TEST_API} library was not generated for ${LANGUAGE} at ${RUBY_GEN_DIR}."
ls -la ${RUBY_GEN_DIR}
exit 1
fi
when: always
Expand All @@ -133,6 +135,10 @@ anchor_run_ruby: &anchor_run_ruby
- attach_workspace:
# Use the workspace created in generate-clients
at: workspace
- run:
name: Prepare environment # The environment set for this job does not seem to propagate
command: |
echo 'export RUBY_GEN_DIR="/tmp/workspace/gapic-generator/artman-genfiles/ruby/google-cloud-ruby/"' >> $BASH_ENV
- run:
<<: *anchor_run_decrypt
- run:
Expand Down

0 comments on commit 5f7c51b

Please sign in to comment.