Sha256: 5403141e4cbc67d1802d49abaa649758bbdb94b36a1fc8ba10e84f08d3ab5b37

Contents?: true

Size: 1.14 KB

Versions: 18

Compression:

Stored size: 1.14 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 gooddata-ruby bundle')
    end

    task :jruby do
      system('docker-compose run 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

18 entries across 18 versions & 1 rubygems

Version Path
gooddata-1.3.6-java ci.rake
gooddata-1.3.6 ci.rake
gooddata-1.3.5-java ci.rake
gooddata-1.3.5 ci.rake
gooddata-1.3.4-java ci.rake
gooddata-1.3.4 ci.rake
gooddata-1.3.3-java ci.rake
gooddata-1.3.3 ci.rake
gooddata-1.3.2-java ci.rake
gooddata-1.3.2 ci.rake
gooddata-1.3.1-java ci.rake
gooddata-1.3.1 ci.rake
gooddata-1.3.0-java ci.rake
gooddata-1.3.0 ci.rake
gooddata-1.2.1-java ci.rake
gooddata-1.2.1 ci.rake
gooddata-1.2.0-java ci.rake
gooddata-1.2.0 ci.rake