-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
53 lines (40 loc) · 1.17 KB
/
azure-pipelines.yml
File metadata and controls
53 lines (40 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
trigger:
- master
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: |
echo "First pipeline script"
echo "Another line of code"
- script: |
export CHEF_LICENSE=accept
wget https://packages.chef.io/files/stable/chef-workstation/0.17.5/ubuntu/16.04/chef-workstation_0.17.5-1_amd64.deb
sudo dpkg -i chef-workstation_0.17.5-1_amd64.deb
chef -v
displayName: 'Installing Chef Workstation'
- script: |
export CHEF_LICENSE=accept
chef gem install kitchen-docker
displayName: 'Installing kitchen-docker gem'
- script: |
/opt/chef-workstation/bin/chef exec cookstyle . --except Layout/EndOfLine
displayName: 'Run Cookstyle'
- script: |
kitchen destroy
displayName: 'Destroy any existing kitchen'
- script: |
kitchen create
displayName: 'Create a new kitchen'
- script: |
kitchen converge
displayName: 'Converge the new kitchen'
- script: |
kitchen verify
displayName: 'verify your tests against the new kitchen'
- script: |
kitchen destroy
displayName: 'Destroy the kitchen'
- task: PublishBuildArtifacts@1
displayName: 'Publish cookbook to Release pipeline'
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)'