-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathazure-pipelines-test.yml
More file actions
76 lines (69 loc) · 2.88 KB
/
azure-pipelines-test.yml
File metadata and controls
76 lines (69 loc) · 2.88 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
parameters:
- name: HelmVersions
type: object
default: []
- name: RunTests
type: boolean
default: true
- name: NoLint
type: boolean
default: false
steps:
- script: |
set -euo pipefail
echo installing gauge
sudo curl -SsL "https://downloads.gauge.org/stable" | sh
cd hull/files/test/HULL
sudo pip install -r requirements.txt
gauge
displayName: 'install gauge'
condition: or(and(gt(length('${{join(' ',parameters.HelmVersions) }}'),0),eq('${{ parameters.RunTests }}','True')),and(ne(variables['HelmVersion'],''),eq('${{ parameters.RunTests }}','True')))
- script: |
set -euo pipefail
echo installing helm v$(HelmVersion)
helmmajor=$(echo "$(HelmVersion)" | cut -d. -f1)
wget https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-${helmmajor}
sudo chmod +x ./get-helm-${helmmajor}
sudo ./get-helm-${helmmajor} --version v$(HelmVersion)
echo running helm version for helm v$(HelmVersion) - major version is ${helmmajor}
helm version
displayName: 'install helm v$(HelmVersion)'
condition: and(ne(variables['HelmVersion'],''),eq('${{ parameters.RunTests }}','True'))
- script: |
set -euo pipefail
echo starting gauge test against helm version $(HelmVersion) and test type $(TestType)
ls
cd hull/files/test/HULL
ls
echo no_lint: $(NoLint)
export no_lint=$(NoLint)
gauge run --env $(TestType)_file -p -l debug specs
displayName: 'gauge test against helm v$(HelmVersion)'
condition: and(ne(variables['HelmVersion'],''),eq('${{ parameters.RunTests }}','True'))
- ${{ each version in parameters.HelmVersions }}: # Each Helm Version
- script: |
set -euo pipefail
echo installing helm v$(HelmVersion)
helmmajor=$(echo "$(HelmVersion)" | cut -d. -f1)
wget https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-${helmmajor}
sudo chmod +x ./get-helm-${helmmajor}
sudo ./get-helm-${helmmajor} --version v$(HelmVersion)
echo running helm version for helm v$(HelmVersion) - major version is ${helmmajor}
helm version
displayName: 'install helm v${{ version.version }}'
condition: and(gt(length('${{join(' ',parameters.HelmVersions) }}'),0),eq('${{ parameters.RunTests }}','True'))
- script: |
set -euo pipefail
echo starting gauge test against helm version $(HelmVersion) and test type $(TestType)
ls
cd hull/files/test/HULL
ls
echo no_lint: $(NoLint)
export no_lint=$(NoLint)
gauge run --env $(TestType)_file -p -l debug specs
displayName: 'gauge test against helm v${{ version.version }}'
condition: and(gt(length('${{join(' ',parameters.HelmVersions) }}'),0),eq('${{ parameters.RunTests }}','True'))