-
Notifications
You must be signed in to change notification settings - Fork 11
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 #33 from BlockScore/feature/parallel-circleci
Change circle configuration to parallelize specs
- Loading branch information
Showing
2 changed files
with
14 additions
and
9 deletions.
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 |
---|---|---|
@@ -1,13 +1,7 @@ | ||
dependencies: | ||
override: | ||
- "rvm-exec 1.9.3-p551 bundle install" | ||
- "rvm-exec 2.0.0-p598 bundle install" | ||
- "rvm-exec 2.1.5 bundle install" | ||
- "rvm-exec 2.2.0 bundle install" | ||
|
||
- ./circleci.sh build | ||
test: | ||
override: | ||
- "rvm-exec 1.9.3-p551 bundle exec rspec" | ||
- "rvm-exec 2.0.0-p598 bundle exec rspec" | ||
- "rvm-exec 2.1.5 bundle exec rspec" | ||
- "rvm-exec 2.2.0 bundle exec rspec" | ||
- ./circleci.sh spec: | ||
parallel: true |
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,11 @@ | ||
#!/bin/bash | ||
RUBY_VERSIONS=(1.9.3-p551 2.0.0-p598 2.1.5 2.2.3) | ||
CIRCLE_NODE_RUBY_VERSION="${RUBY_VERSIONS[$CIRCLE_NODE_INDEX]}" | ||
|
||
if [[ "$1" = "build" ]] | ||
then | ||
rvm-exec $CIRCLE_NODE_RUBY_VERSION bundle install; | ||
elif [[ "$1" = "spec" ]] | ||
then | ||
rvm-exec $CIRCLE_NODE_RUBY_VERSION rspec; | ||
fi |