Sha256: 48632f050c528cce995d81c6868f26a4bfd617a37faa54ff90c3701635bece1e

Contents?: true

Size: 1.15 KB

Versions: 22

Compression:

Stored size: 1.15 KB

Contents

namespace :docker do
  desc 'Build Docker image'
  task :build do
    system('docker-compose build')
  end

  desc 'Bundles gems using cache'
  namespace :bundle do
    task :ruby do
      system('docker-compose run --rm gooddata-ruby bundle')
    end

    task :jruby do
      system('docker-compose run --rm gooddata-jruby bundle')
    end
  end
end

namespace :test do
  task :test do
    system('docker-compose run gooddata-ruby bundle exec echo ahoj')
  end
end

namespace :pronto do
  desc 'Performs automated code review on the PR'
  task :ci do
    system('docker-compose run gooddata-ruby bundle exec pronto run -f github_pr -c origin/master --exit-code') ||
      fail('Pronto execution failed!')
  end
end

namespace :test do
  namespace :unit do
    task :docker do
      system('docker-compose run -u $(id -u):$(id -g) -e GNUPGHOME=/tmp gooddata-ruby bundle exec rake test:unit') ||
        fail('Test execution failed!')
    end
  end

  namespace :integration do
    task :docker do
      system('docker-compose run -u $(id -u):$(id -g) -e GNUPGHOME=/tmp gooddata-jruby bundle exec rake test:integration') ||
        fail('Test execution failed!')
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
gooddata-2.1.8-java ci.rake
gooddata-2.1.8 ci.rake
gooddata-2.1.7-java ci.rake
gooddata-2.1.7 ci.rake
gooddata-2.1.6-java ci.rake
gooddata-2.1.6 ci.rake
gooddata-2.1.5-java ci.rake
gooddata-2.1.5 ci.rake
gooddata-2.1.4-java ci.rake
gooddata-2.1.4 ci.rake
gooddata-2.1.3-java ci.rake
gooddata-2.1.3 ci.rake
gooddata-2.1.2-java ci.rake
gooddata-2.1.2 ci.rake
gooddata-2.1.1-java ci.rake
gooddata-2.1.1 ci.rake
gooddata-2.1.0-java ci.rake
gooddata-2.1.0 ci.rake
gooddata-2.0.1-java ci.rake
gooddata-2.0.1 ci.rake