Sha256: 3bd6fac3e6b976db0c581d52fbe66b6398ab9c5404a5bbd1b4ee7150a81276b0

Contents?: true

Size: 1.15 KB

Versions: 9

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 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/develop --exit-code') ||
      fail('Pronto execution failed!')
  end
end

namespace :test do
  namespace :unit do
    task :docker do
      system('docker-compose run -u 1002:1002 -e HOME=/var/lib/jenkins-slave gooddata-ruby bundle exec rake test:unit') ||
        fail('Test execution failed!')
    end
  end

  namespace :integration do
    task :docker do
      system('docker-compose run -u 1002:1002 -e HOME=/var/lib/jenkins-slave gooddata-jruby bundle exec rake test:integration') ||
        fail('Test execution failed!')
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gooddata-1.1.0-java ci.rake
gooddata-1.1.0 ci.rake
gooddata-1.0.2-java ci.rake
gooddata-1.0.2 ci.rake
gooddata-1.0.1 ci.rake
gooddata-1.0.1-java ci.rake
gooddata-1.0.0-java ci.rake
gooddata-1.0.0 ci.rake
gooddata-0.6.54 ci.rake