Created
November 26, 2014 04:15
-
-
Save kechol/2b9fdd4ec0e73a5c1d2d to your computer and use it in GitHub Desktop.
Example configuration of Circle CI
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
machine: | |
timezone: | |
Asia/Tokyo | |
hosts: | |
ci.example.com: 127.0.0.1 | |
php: | |
version: 5.6.2 | |
node: | |
version: 0.10.28 | |
python: | |
version: 2.7.8 | |
ruby: | |
version: 2.1.5 | |
dependencies: | |
pre: | |
- pip install awscli | |
- gem install bundler | |
override: | |
- php composer.phar install | |
- npm install | |
- bundle install | |
- node_modules/.bin/bower install | |
- node_modules/.bin/grunt | |
post: | |
- cp ~/repo/test/config/ci.example.com /etc/apache2/sites-available | |
- a2ensite ci.example.com | |
- a2enmod rewrite | |
- sudo service apache2 restart | |
database: | |
override: | |
- mysql -u ubuntu circle_test < test/e2e/data/db.sql | |
test: | |
override: | |
- sh test/e2e/runtest -u http://ci.example.com/ | |
deployment: | |
production: | |
branch: master | |
commands: | |
- bundle exec cap production deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment