-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from jdennes/add-scripts
Add scripts directory
- Loading branch information
Showing
5 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
language: ruby | ||
rvm: | ||
- 2.0.0 | ||
- 2.1.6 | ||
- 2.2.2 | ||
script: "script/cibuild" | ||
sudo: false | ||
cache: bundler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
# script/bootstrap: Resolve all dependencies required by the project. | ||
|
||
set -e | ||
|
||
cd "$(dirname "$0")/.." | ||
|
||
echo "==> Installing gem dependencies..." | ||
bundle check --path vendor/gems 2>&1 > /dev/null || { | ||
bundle install --path vendor/gems --quiet --without production | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
|
||
# script/cibuild: Run the CI build for the project. | ||
|
||
set -e | ||
|
||
script/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
# script/test: Run the tests for the project. | ||
|
||
set -e | ||
|
||
cd "$(dirname "$0")/.." | ||
|
||
script/bootstrap | ||
|
||
echo "==> Running tests..." | ||
|
||
if [ -n "$1" ]; then | ||
# pass arguments to test call. This is useful for calling a single test. | ||
bundle exec rake test "$1" | ||
else | ||
bundle exec rake test | ||
fi |