Hi There,
I am new to CircleCI. I have 2 sets of configurations. The first one is using CircleCI version 1.0 and the 2nd one is the one I have tried to create for migrating to CircleCI version 2.0.
Hence request you to let me know if the objective of the first version is maintained in the second or will there be functional difference if I use the version 2 .0.
Version 1.0:
## Customize the test machine
machine:
timezone:
America/New_York # List of timezones http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# Version of ruby to use
ruby:
version:
2.3.1
## Customize database setup
database:
override:
# replace Circle's generated database.yml
- cp config/database.yml.ci config/database.yml
- bundle exec rake db:create db:schema:load --trace
test:
minitest_globs:
- test/**/*_test.rb
checkout:
post:
- mkdir -p tmp
Version 2.0:
version: 2 # use CircleCI 2.0
jobs: # a collection of steps
build: # runs not using Workflows must have a `build` job as entry point
docker: # run the steps with Docker
- image: circleci/ruby:2.3-jessie # ...with this image as the primary container; this is where all `steps` will run
environment:
TZ: "/usr/share/zoneinfo/America/New_York"
steps: # a collection of executable commands
- checkout: # special step to check out source code to working directory
post:
- mkdir -p tmp
- run:
name: override
command:
- cp config/database.yml.ci config/database.yml
- bundle exec rake db:create db:schema:load --trace
- test:
minitest_globs:
- test/**/*_test.rb
Regards,
Mru