Skip to content

Commit

Permalink
Remove conditional for Windows if generate-fake-stemcell-automation
Browse files Browse the repository at this point in the history
  • Loading branch information
aramprice committed Sep 22, 2023
1 parent d97680b commit d5aee90
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
GOSRC = $(shell find . -name "*.go" ! -name "*test.go" ! -name "*fake*" ! -path "./integration/*")
FAKE_STEMCELL_AUTOMATION_PATH = integration/construct/assets/StemcellAutomation.zip
STEMCELL_VERSION = $(shell echo "$${STEMBUILD_VERSION}")
LD_FLAGS = "-w -s -X github.com/cloudfoundry/stembuild/version.Version=${STEMCELL_VERSION}"

Expand Down Expand Up @@ -49,13 +48,8 @@ integration/construct : generate-fake-stemcell-automation
integration-badger : generate-fake-stemcell-automation
go run github.com/onsi/ginkgo/v2/ginkgo -r -v --randomize-all --until-it-fails --timeout 3h integration

ifeq ($(OS),Windows_NT)
generate-fake-stemcell-automation: $(FAKE_STEMCELL_AUTOMATION_PATH)
copy $(FAKE_STEMCELL_AUTOMATION_PATH) assets/
else
generate-fake-stemcell-automation: $(FAKE_STEMCELL_AUTOMATION_PATH)
$(CP) $(FAKE_STEMCELL_AUTOMATION_PATH) assets/
endif
generate-fake-stemcell-automation:
$(CP) integration/construct/assets/StemcellAutomation.zip assets/

generate: assets/StemcellAutomation.zip

Expand Down

0 comments on commit d5aee90

Please sign in to comment.