|
16 | 16 | endif |
17 | 17 | endif |
18 | 18 |
|
19 | | -all : test build |
20 | | - |
21 | | -build : out/stembuild |
22 | | - |
23 | | -build-integration : generate-fake-stemcell-automation $(GOSRC) |
24 | | - go build -o $(COMMAND) -ldflags $(LD_FLAGS) . |
25 | | - |
26 | | -clean : |
27 | | - rm -rf version/version.go assets/StemcellAutomation.zip assets/local/* out/* |
28 | | - |
29 | | -format : |
30 | | - go fmt ./... |
31 | | - |
32 | | -integration : generate-fake-stemcell-automation |
33 | | - go run github.com/onsi/ginkgo/v2/ginkgo -r -vv --randomize-all --keep-going --flake-attempts 2 --timeout 3h --output-interceptor-mode=none integration |
34 | | - |
35 | | -integration/construct : generate-fake-stemcell-automation |
36 | | - go run github.com/onsi/ginkgo/v2/ginkgo -r -v --randomize-all --keep-going --flake-attempts 2 --timeout 3h --output-interceptor-mode=none integration/construct |
| 19 | +assets/StemcellAutomation.zip: |
| 20 | + @echo "Unable to locate assets/StemcellAutomation.zip. This file is bundled into the final stembuild executable and must be present. Please see README.md on how to construct this file." |
| 21 | + exit 1 |
37 | 22 |
|
38 | | -integration-badger : generate-fake-stemcell-automation |
39 | | - go run github.com/onsi/ginkgo/v2/ginkgo -r -v --randomize-all --until-it-fails --timeout 3h integration |
40 | | - |
41 | | -generate-fake-stemcell-automation: |
42 | | - $(CP) integration/construct/assets/StemcellAutomation.zip assets/ |
| 23 | +all : stembuild stembuild.exe |
| 24 | +stembuild : out/stembuild |
| 25 | +stembuild.exe : out/stembuild.exe |
43 | 26 |
|
44 | 27 | out/stembuild : assets $(GOSRC) |
45 | 28 | CGO_ENABLED=0 go build -o $(COMMAND) -ldflags $(LD_FLAGS) . |
46 | 29 |
|
47 | 30 | out/stembuild.exe : assets $(GOSRC) |
48 | 31 | GOOS=windows CGO_ENABLED=0 go build -o out/stembuild.exe -ldflags $(LD_FLAGS) . |
49 | 32 |
|
50 | | -test : units |
| 33 | +clean : |
| 34 | + rm -rf version/version.go assets/StemcellAutomation.zip out/* |
51 | 35 |
|
52 | | -units : format generate-fake-stemcell-automation |
53 | | - @go run github.com/onsi/ginkgo/v2/ginkgo version |
54 | | - go run github.com/onsi/ginkgo/v2/ginkgo -r --randomize-all --randomize-suites --keep-going --skip-package integration,iaas_cli |
55 | | - @echo "" |
56 | | - @echo "SWEET SUITE SUCCESS" |
57 | 36 |
|
58 | | -contract : |
59 | | - go run github.com/onsi/ginkgo/v2/ginkgo -r --randomize-all --randomize-suites --keep-going --flake-attempts 2 iaas_cli |
| 37 | +units : stubbed-stemcell-automation-zip |
| 38 | + go run github.com/onsi/ginkgo/v2/ginkgo run -r --randomize-all --randomize-suites --keep-going --skip-package integration,iaas_cli |
60 | 39 |
|
61 | | -.PHONY : all build build-integration clean format generate-fake-stemcell-automation |
62 | | -.PHONY : test units units-full integration integration-tests-full |
| 40 | +iaas_cli : |
| 41 | + go run github.com/onsi/ginkgo/v2/ginkgo run -r --randomize-all --randomize-suites --keep-going --flake-attempts 2 iaas_cli |
63 | 42 |
|
64 | | -assets/StemcellAutomation.zip: |
65 | | - @echo "Unable to locate assets/StemcellAutomation.zip. This file is bundled into the final stembuild executable and must be present. Please see README.md on how to construct this file." |
66 | | - exit 1 |
| 43 | +integration-build : stubbed-stemcell-automation-zip $(GOSRC) |
| 44 | + go build -o $(COMMAND) -ldflags $(LD_FLAGS) . |
| 45 | + |
| 46 | +integration : stubbed-stemcell-automation-zip |
| 47 | + go run github.com/onsi/ginkgo/v2/ginkgo run -r -vv --timeout 3h --randomize-all --keep-going --flake-attempts 2 integration |
| 48 | + |
| 49 | +stubbed-stemcell-automation-zip : |
| 50 | + $(CP) integration/construct/assets/StemcellAutomation.zip assets/ |
| 51 | + |
| 52 | + |
| 53 | +.PHONY : all stembuild stembuild.exe clean |
| 54 | +.PHONY : units iaas_cli integration integration-build stubbed-stemcell-automation-zip |
0 commit comments