Skip to content

Instantly share code, notes, and snippets.

@shicholas
Last active December 17, 2015 14:09
Show Gist options
  • Save shicholas/5622815 to your computer and use it in GitHub Desktop.
Save shicholas/5622815 to your computer and use it in GitHub Desktop.
circle.yml for rails and yeoman
## Customize the test machine
machine:
timezone:
America/Los_Angeles # Set the timezone
# Version of ruby to use
ruby:
version:
1.9.3-p392
## Customize database setup
# database:
# pre:
# - psql -c "CREATE EXTENSION hstore;"
test:
pre:
- "cd angular_app && npm install -g yo grunt-cli bower"
- "cd angular_app && npm install -g generator-angular"
- "cd angular_app && npm install && bower install"
- "gem update --system && gem install compass"
- "cd angular_app && grunt test"
## Customize deployment commands
deployment:
production:
branch: master
commands:
- heroku maintenance:on --app pokerfund
# heroku scale worker=0 -app pokerfund
- git push git@heroku.com:pokerfund.git $CIRCLE_SHA1:master
- heroku run rake db:migrate --app pokerfund
# heroku scale worker=0 -app pokerfund
- heroku maintenance:off --app pokerfund
@aguynamedben
Copy link

FYI if anybody finds this, on CircleCI with 4x parallelism I needed to run bower install in the dependencies -> pre section of circle.yml for the tests on containers 1-3 to pass. Seems like a CircleCI bug where bower install reports as working on containers 1-3, but when you SSH into the CircleCI container the bower installed files are missing, causing tests to fail. But all works when you put bower install into the dependencies -> pre section of circle.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment