File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 80
80
continue-on-error : false
81
81
shell : bash
82
82
run : |
83
- spec/support/bin/setup_simulator.sh ./hms-simulation-environment ../testdata/fixtures/ sls/no_hardware.json
83
+ make load- sls
84
84
85
85
- name : Run shellspec
86
86
shell : bash
Original file line number Diff line number Diff line change @@ -40,3 +40,7 @@ canitest.yml
40
40
canitestdb.json
41
41
canitestdb.log
42
42
canitest_export.csv
43
+
44
+ # support repos
45
+ hms-simulation-environment /
46
+ shellspec /
Original file line number Diff line number Diff line change @@ -139,6 +139,21 @@ shellspec:
139
139
validate-hardware-type-schemas :
140
140
go run ./pkg/hardwaretypes/validate pkg/hardwaretypes/hardware-types/schema pkg/hardwaretypes/hardware-types/
141
141
142
+ sim-setup :
143
+ @if ! [ -d hms-simulation-environment ]; then \
144
+ git clone https://github.com/Cray-HPE/hms-simulation-environment.git; \
145
+ spec/support/bin/setup_simulator.sh ./hms-simulation-environment ../testdata/fixtures/sls/no_hardware.json; \
146
+ fi
147
+
148
+ load-sls :
149
+ spec/support/bin/setup_simulator.sh ./hms-simulation-environment ../testdata/fixtures/sls/no_hardware.json
150
+
151
+ spec-setup :
152
+ @if ! [ -d ./shellspec ]; then \
153
+ git clone https://github.com/shellspec/shellspec.git; \
154
+ ln -s " $( shell pwd) " /shellspec/shellspec /usr/local/bin/; \
155
+ fi
156
+
142
157
unittest : bin
143
158
GOOS=$(GOOS ) GOARCH=$(GOARCH ) go test -cover \
144
159
github.com/Cray-HPE/cani/internal/inventory \
@@ -149,7 +164,7 @@ unittest: bin
149
164
github.com/Cray-HPE/cani/internal/provider/csm/validate/checks \
150
165
github.com/Cray-HPE/cani/internal/provider/csm/validate/common
151
166
152
- spec : bin
167
+ functional : bin
153
168
./spec/support/bin/cani_integrate.sh functional
154
169
155
170
integrate : bin
@@ -158,7 +173,7 @@ integrate: bin
158
173
edge : bin
159
174
./spec/support/bin/cani_integrate.sh edge
160
175
161
- test : bin validate-hardware-type-schemas unittest spec integrate edge
176
+ test : bin validate-hardware-type-schemas unittest functional integrate edge
162
177
163
178
tools :
164
179
go install golang.org/x/lint/golint@latest
You can’t perform that action at this time.
0 commit comments