Browse Source

Add integration task

Add missing gate integration task, but use the one from
Common cookbook to make future updates easy.

Change-Id: I32611ef66a812bfba70f9f392d7955114018318f
Mark Vanderwiel 3 years ago
parent
commit
8a2f26d6fe
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      Rakefile

+ 14
- 0
Rakefile View File

@@ -2,25 +2,39 @@ task default: ["test"]
2 2
 
3 3
 task :test => [:lint, :style, :unit]
4 4
 
5
+desc "Vendor the cookbooks in the Berksfile"
5 6
 task :berks_prep do
6 7
   sh %{chef exec berks vendor}
7 8
 end
8 9
 
10
+desc "Run FoodCritic (lint) tests"
9 11
 task :lint do
10 12
   sh %{chef exec foodcritic --epic-fail any --tags ~FC003 --tags ~FC023 .}
11 13
 end
12 14
 
15
+desc "Run RuboCop (style) tests"
13 16
 task :style do
14 17
   sh %{chef exec rubocop}
15 18
 end
16 19
 
20
+desc "Run RSpec (unit) tests"
17 21
 task :unit => :berks_prep do
18 22
   sh %{chef exec rspec --format documentation}
19 23
 end
20 24
 
25
+desc "Remove the berks-cookbooks directory and the Berksfile.lock"
21 26
 task :clean do
22 27
   rm_rf [
23 28
     'berks-cookbooks',
24 29
     'Berksfile.lock'
25 30
   ]
26 31
 end
32
+
33
+desc "All-in-One Neutron build Infra using Common task"
34
+task :integration do
35
+  # Use the common integration task
36
+  sh %(wget -nv -t 3 -O Rakefile-Common https://raw.githubusercontent.com/openstack/cookbook-openstack-common/master/Rakefile)
37
+  load './Rakefile-Common'
38
+  Rake::Task["common_integration"].invoke
39
+end
40
+

Loading…
Cancel
Save