Sha256: 4d6eadd17e0bd49a1c3026ebccb96a61074c1ed74b43e7563ed78bc16402d4d1

Contents?: true

Size: 740 Bytes

Versions: 32

Compression:

Stored size: 740 Bytes

Contents

require 'rake/tasklib'
require 'simp/ci/gitlab'

module Simp; end
module Simp::Rake
  class Ci < ::Rake::TaskLib
    def initialize( dir )
       @base_dir = dir
       define
    end

    def define
      namespace :simp do

        desc 'Validate CI configuration'
        task :ci_lint => [:gitlab_ci_lint] do
        end

        desc 'Validate GitLab CI configuration'
        task :gitlab_ci_lint do
          # only validation so far is as follows:
          # - config file is valid YAML
          # - config file passes GitLab lint check, when GitLab available
          # - acceptance test job config has valid suites and nodesets
          Simp::Ci::Gitlab.new(@base_dir).validate_config
        end

      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
simp-rake-helpers-5.12.2 lib/simp/rake/ci.rb
simp-rake-helpers-5.12.1 lib/simp/rake/ci.rb
simp-rake-helpers-5.12.0 lib/simp/rake/ci.rb
simp-rake-helpers-5.11.6 lib/simp/rake/ci.rb
simp-rake-helpers-5.11.5 lib/simp/rake/ci.rb
simp-rake-helpers-5.11.4 lib/simp/rake/ci.rb
simp-rake-helpers-5.11.3 lib/simp/rake/ci.rb
simp-rake-helpers-5.11.2 lib/simp/rake/ci.rb
simp-rake-helpers-5.11.1 lib/simp/rake/ci.rb
simp-rake-helpers-5.11.0 lib/simp/rake/ci.rb
simp-rake-helpers-5.10.2 lib/simp/rake/ci.rb
simp-rake-helpers-5.10.0 lib/simp/rake/ci.rb