Skip to content

Instantly share code, notes, and snippets.

@squidarth
Created May 10, 2013 16:59
Show Gist options
  • Save squidarth/5555760 to your computer and use it in GitHub Desktop.
Save squidarth/5555760 to your computer and use it in GitHub Desktop.
circle.yml
#!/bin/bash
i=0
files=()
for file in $(find ./spec -name "*_spec.rb")
do
if [ $(($i % $CIRCLE_NODE_TOTAL)) -eq $CIRCLE_NODE_INDEX ]
then
files+=" $file"
fi
((i++))
done
test-runner ${files[@]}
dependencies:
pre:
- npm install -g bower
- bower install
database:
post:
- bundle exec rake generate_js_routes i18n:js:export --trace
test:
override:
- ./circle-rspec.sh
- bundle exec jasmine-headless-webkit -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment