summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Preston <stuart@chef.io>2018-11-28 18:12:43 +0000
committerStuart Preston <stuart@chef.io>2018-11-28 18:12:43 +0000
commit3221f58445cfebf73dfb6bdc779151196c7a4773 (patch)
tree594b59ecb98b9d74eb6fc0e4ed0d667884c78a98
parentad349165954282b8dd102e8308cad1eea30277e4 (diff)
downloadchef-azure-pipelines.tar.gz
Adding Functional and Integration test sourcesazure-pipelines
-rw-r--r--azure-pipelines-functional.yml18
-rw-r--r--azure-pipelines-integration.yml18
-rw-r--r--pipeline-templates/functional-steps.yml11
-rw-r--r--pipeline-templates/integration-steps.yml11
-rw-r--r--pipeline-templates/unit-steps.yml2
5 files changed, 59 insertions, 1 deletions
diff --git a/azure-pipelines-functional.yml b/azure-pipelines-functional.yml
new file mode 100644
index 0000000000..40c01718df
--- /dev/null
+++ b/azure-pipelines-functional.yml
@@ -0,0 +1,18 @@
+jobs:
+- job: Linux
+ pool:
+ vmImage: 'Ubuntu 16.04'
+ steps:
+ - template: pipeline-templates/functional-steps.yml
+
+# - job: macOS
+# pool:
+# vmImage: 'macOS-10.13'
+# steps:
+# - template: pipeline-templates/functional-steps.yml
+
+# - job: WindowsServer
+# pool:
+# vmImage: 'vs2017-win2016'
+# steps:
+# - template: pipeline-templates/functional-steps-windows.yml
diff --git a/azure-pipelines-integration.yml b/azure-pipelines-integration.yml
new file mode 100644
index 0000000000..62a464110f
--- /dev/null
+++ b/azure-pipelines-integration.yml
@@ -0,0 +1,18 @@
+jobs:
+- job: Linux
+ pool:
+ vmImage: 'Ubuntu 16.04'
+ steps:
+ - template: pipeline-templates/integration-steps.yml
+
+# - job: macOS
+# pool:
+# vmImage: 'macOS-10.13'
+# steps:
+# - template: pipeline-templates/integration-steps.yml
+
+# - job: WindowsServer
+# pool:
+# vmImage: 'vs2017-win2016'
+# steps:
+# - template: pipeline-templates/integration-steps-windows.yml
diff --git a/pipeline-templates/functional-steps.yml b/pipeline-templates/functional-steps.yml
new file mode 100644
index 0000000000..996adb93c0
--- /dev/null
+++ b/pipeline-templates/functional-steps.yml
@@ -0,0 +1,11 @@
+steps:
+- task: UseRubyVersion@0
+ inputs:
+ versionSpec: '>= 2.5'
+ addToPath: true
+- script: |
+ export GEM_HOME=$HOME/.gem
+ sudo env PATH=$PATH gem install bundler --no-ri --no-doc
+ sudo env PATH=$PATH bundle install --retry=3 --jobs=4
+ sudo env PATH=$PATH bundle exec rake spec:functional
+ displayName: 'bundle exec rake spec:functional'
diff --git a/pipeline-templates/integration-steps.yml b/pipeline-templates/integration-steps.yml
new file mode 100644
index 0000000000..605273b06d
--- /dev/null
+++ b/pipeline-templates/integration-steps.yml
@@ -0,0 +1,11 @@
+steps:
+- task: UseRubyVersion@0
+ inputs:
+ versionSpec: '>= 2.5'
+ addToPath: true
+- script: |
+ export GEM_HOME=$HOME/.gem
+ sudo env PATH=$PATH gem install bundler --no-ri --no-doc
+ sudo env PATH=$PATH bundle install --retry=3 --jobs=4
+ sudo env PATH=$PATH bundle exec rake spec:integration
+ displayName: 'bundle exec rake spec:integration'
diff --git a/pipeline-templates/unit-steps.yml b/pipeline-templates/unit-steps.yml
index 0eb5f3e9ea..2d7f848835 100644
--- a/pipeline-templates/unit-steps.yml
+++ b/pipeline-templates/unit-steps.yml
@@ -8,4 +8,4 @@ steps:
sudo env PATH=$PATH gem install bundler --no-ri --no-doc
sudo env PATH=$PATH bundle install --retry=3 --jobs=4
sudo env PATH=$PATH bundle exec rake spec:unit
- displayName: 'bundle exec rake'
+ displayName: 'bundle exec rake spec:unit'