Sha256: d1941e51bd97ba4a74faa8fcc8732341a351f3ef4c536bc840be988cacde0ceb

Contents?: true

Size: 1.85 KB

Versions: 4

Compression:

Stored size: 1.85 KB

Contents

# This is a sample build configuration for Ruby.
# Check our guides at https://confluence.atlassian.com/x/8r-5Mw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.

pipelines:
  default:
    - step:
        name: New ruby
        image: ruby:2.4.1
        script:
          - sed -i "s/'sqlite3'/'sqlite3', '~> 1.3.6'/g" redmine_crm.gemspec
          - sed -i "s/'mysql2'/'mysql2', '~> 0.4.0'/g" redmine_crm.gemspec
          - bundle install
          - bundle exec rake test DB=sqlite
          - bundle exec rake test DB=postgresql
          - bundle exec rake test DB=mysql
        services:
          - mysql
          - postgres
    - step:
        name: Old ruby
        image: ruby:1.9.3
        script:
          - sed -i "s/'rails'/'rails'\n  spec.add_runtime_dependency 'rake', '~> 11.2.0'/g" redmine_crm.gemspec
          - sed -i "s/'rails'/'rails'\n  spec.add_runtime_dependency 'i18n', '~> 0.9.5'/g" redmine_crm.gemspec
          - sed -i "s/'rails'/'rails'\n  spec.add_runtime_dependency 'nokogiri', '~> 1.6.8'/g" redmine_crm.gemspec
          - sed -i "s/'rails'/'rails', '~> 4.2.11'/g" redmine_crm.gemspec
          - sed -i "s/'sqlite3'/'sqlite3', '~> 1.3.6'/g" redmine_crm.gemspec
          - sed -i "s/'mysql2'/'mysql2', '~> 0.4.0'/g" redmine_crm.gemspec
          - sed -i "s/'pg'/'pg', '~> 0.18.0'/g" redmine_crm.gemspec
          - bundle install
          - bundle exec rake test DB=sqlite
          - bundle exec rake test DB=mysql
        services:
          - mysql

definitions:
  services:
    mysql:
      image: mysql:5.7
      environment:
        MYSQL_DATABASE: redmine_crm_test
        MYSQL_ROOT_PASSWORD: password
    postgres:
      image: postgres
      environment:
        POSTGRES_DB: redmine_crm_test
        POSTGRES_PASSWORD: password

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
redmine_crm-0.0.47 bitbucket-pipelines.yml
redmine_crm-0.0.46 bitbucket-pipelines.yml
redmine_crm-0.0.45 bitbucket-pipelines.yml
redmine_crm-0.0.44 bitbucket-pipelines.yml