Skip to content

Commit

Permalink
Improve the setup script
Browse files Browse the repository at this point in the history
We weren't installing the dependencies for the integration tests so the
default Rake task was failing upon first run on a new machine.
  • Loading branch information
michaelherold committed Nov 17, 2019
1 parent 729c99b commit a193865
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
11 changes: 9 additions & 2 deletions CONTRIBUTING.md
Expand Up @@ -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
```

Expand Down
7 changes: 6 additions & 1 deletion bin/setup
@@ -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

0 comments on commit a193865

Please sign in to comment.