10 - <https://circleci.com/docs/config-sample>
14 * __machine__: adjusting the VM to your preferences and requirements
15 * __checkout__: checking out and cloning your git repo
16 * __dependencies__: setting up your project's language-specific dependencies
17 * __database__: preparing the databases for your tests
18 * __test__: running your tests
19 * __deployment__: deploying your code to your web servers
21 See: <https://circleci.com/docs/configuration>
26 ## Customize the test machine
30 America/Los_Angeles # Set the timezone
32 # Version of ruby to use
35 1.8.7-p358-falcon-perf
40 dev.mycompany.com: 127.0.0.1
42 # Add some environment variables
45 DATABASE_URL: postgres://ubuntu:@127.0.0.1:5432/circle_test
51 - git submodule update --init # use submodules
53 ## Customize dependencies
56 - npm install coffeescript # install from a different package manager
57 - gem uninstall bundler # use a custom version of bundler
58 - gem install bundler --pre
61 - bundle install: # note ':' here
62 timeout: 180 # fail if command has no output for 3 minutes
64 # we automatically cache and restore many dependencies between
65 # builds. If you need to, you can add custom paths to cache:
67 - "custom_1" # relative to the build directory
68 - "~/custom_2" # relative to the user's home directory
70 ## Customize database setup
73 # replace CircleCI's generated database.yml
74 - cp config/database.yml.ci config/database.yml
75 - bundle exec rake db:create db:schema:load
77 ## Customize test commands
80 - phpunit test/unit-tests # use PHPunit for testing
82 - bundle exec rake jasmine:ci: # add an extra test type
87 ## Customize deployment commands
94 ## Custom notifications
97 # A list of hashes representing hooks. Only the url field is supported.
98 - url: https://someurl.com/hooks/circle