Last active
December 17, 2015 14:09
-
-
Save seashootz/5622815 to your computer and use it in GitHub Desktop.
circle.yml for rails and yeoman
This file contains hidden or 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
| ## 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 [email protected]:pokerfund.git $CIRCLE_SHA1:master | |
| - heroku run rake db:migrate --app pokerfund | |
| # heroku scale worker=0 -app pokerfund | |
| - heroku maintenance:off --app pokerfund |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FYI if anybody finds this, on CircleCI with 4x parallelism I needed to run
bower installin 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 putbower installinto the dependencies -> pre section of circle.yml.