<commit_before>box: wercker/rvm
# Build definition
# See the Rails section on the wercker devcenter:
# http://devcenter.wercker.com/articles/languages/ruby/settingup-rails4.html
# You will want to define your database as follows:
# services:
#   - wercker/postgresql
# See more about services on our devcenter:
# http://devcenter.wercker.com/articles/services/
build:
    steps:
        # Uncomment this to force RVM to use a specific Ruby version
        # - rvm-use:
        #       version: 2.1.0

        # A step that executes `bundle install` command
        - bundle-install:
            without: "postgresql"

        # A step that prepares the database.yml using the database in services
        # - rails-database-yml

        # A custom script step, name value is used in the UI
        # and the code value contains the command that get executed
        - script:
            name: echo ruby information
            code: |
                echo "ruby version $(ruby --version) running"
                echo "from location $(which ruby)"
                echo -p "gem list: $(gem list)"

        # Set up DB
        - script:
            name: Set up db
            code: |
                : > db/test.sqlite3
                RACK_ENV=test bundle exec rake db:migrate

        # Add more steps here:
        - script:
               name: rspec
               code: bundle exec rake spec<commit_msg>wercker.yml migration to Docker based container<commit_after># This references the default Ruby container from
# the Docker Hub.
# https://registry.hub.docker.com/_/ruby/
# If you want to use a specific version you would use a tag:
# ruby:2.2.2
box: ruby:2.3.1
# You can also use services such as databases. Read more on our dev center:
# http://devcenter.wercker.com/docs/services/index.html
# services:
    # - postgres
    # http://devcenter.wercker.com/docs/services/postgresql.html

    # - mongo
    # http://devcenter.wercker.com/docs/services/mongodb.html

# This is the build pipeline. Pipelines are the core of wercker
# Read more about pipelines on our dev center
# http://devcenter.wercker.com/docs/pipelines/index.html
build:
    # Steps make up the actions in your pipeline
    # Read more about steps on our dev center:
    # http://devcenter.wercker.com/docs/steps/index.html
    steps:
        - bundle-install:
            without: postgresql
        # Set up DB
        - script:
            name: Set up db
            code: |
                : > db/test.sqlite3
                RACK_ENV=test bundle exec rake db:migrate
        - script:
            name: rspec
            code: RACK_ENV=test bundle exec rake spec
{'fraction_non_alphanumeric': 0.08468809073724008, 'fraction_numerical': 0.004536862003780718, 'mean_word_length': 2.0309278350515463, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4378447', 'n_tokens_mistral': 772, 'n_tokens_neox': 732, 'n_words': 259}