-
Notifications
You must be signed in to change notification settings - Fork 13
/
azure-pipelines-test.yml
72 lines (65 loc) · 2.52 KB
/
azure-pipelines-test.yml
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
# 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
wget https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
sudo chmod +x ./get-helm-3
sudo ./get-helm-3 --version v$(HelmVersion)
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
wget https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
sudo chmod +x ./get-helm-3
sudo ./get-helm-3 --version v${{ version.version }}
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'))