Class: Simp::Rake::Ci
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Simp::Rake::Ci
- Defined in:
- lib/simp/rake/ci.rb
Instance Method Summary collapse
- #define ⇒ Object
-
#initialize(dir) ⇒ Ci
constructor
A new instance of Ci.
Constructor Details
#initialize(dir) ⇒ Ci
Returns a new instance of Ci.
7 8 9 10 |
# File 'lib/simp/rake/ci.rb', line 7 def initialize( dir ) @base_dir = dir define end |
Instance Method Details
#define ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/simp/rake/ci.rb', line 12 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 |