Improve the setup script

We weren't installing the dependencies for the integration tests so the
default Rake task was failing upon first run on a new machine.
This commit is contained in:
Michael Herold 2019-11-16 20:59:04 -06:00
parent 729c99b11a
commit a193865fde
No known key found for this signature in database
GPG Key ID: 70391C233DE2F014
2 changed files with 15 additions and 3 deletions

View File

@ -23,12 +23,19 @@ git pull upstream master
git checkout -b my-feature-branch
```
#### Bundle Install and Test
#### Install dependencies
You can use the setup script to install dependencies for the gem and its integration tests.
```
bin/setup
```
#### Test
Ensure that you can build the project and run tests.
```
bundle install
bundle exec rake
```

View File

@ -1,7 +1,12 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
bundle install
# Do any other automated setup that you need to do here
for dir in spec/integration/*; do
pushd "$dir"
bundle install
popd
done