Skip to content

Commit

Permalink
Merge pull request #33 from BlockScore/feature/parallel-circleci
Browse files Browse the repository at this point in the history
Change circle configuration to parallelize specs
  • Loading branch information
backus committed Aug 31, 2015
2 parents 5c7527f + d1209a6 commit 1e428e2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
12 changes: 3 additions & 9 deletions circle.yml
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
11 changes: 11 additions & 0 deletions circleci.sh
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

0 comments on commit 1e428e2

Please sign in to comment.