Skip to content

Commit

Permalink
Merge pull request #672 from chef/toggle-shared-folder
Browse files Browse the repository at this point in the history
Updating build.sh with more env vars
  • Loading branch information
Seth Thomas authored Sep 29, 2016
2 parents aefd023 + c032f25 commit ea2fe49
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,23 @@ echo "--- Cleaning up after Packer"
rake clean

echo "--- Build $PLATFORM-$BENTO_PROVIDERS"
rake build_box[$PLATFORM]
./bin/bento build --headless --version $BENTO_VERSION --only $BENTO_PROVIDERS $PLATFORM

echo "--- Test $PLATFORM-$BENTO_PROVIDERS"
rake test_all
if [ "$BENTO_TEST_SHARED_FOLDER" -eq 1 ]
then
echo "--- Testing Shared Folder Support"
./bin/bento test -f
else
echo "--- NOT Testing Shared Folder Support"
./bin/bento test
fi

if [ "$BENTO_UPLOAD" -eq 1 ]
then
echo "--- Upload Boxes to Atlas and S3"
rake upload_all
./bin/bento upload

echo "--- Release Boxes on Atlas"
rake release_all
./bin/bento release $ATLAS_NAME $BENTO_VERSION
fi

0 comments on commit ea2fe49

Please sign in to comment.