Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

Parallelize end-to-end tests #2647

Merged
merged 11 commits into from
Dec 5, 2019
Next Next commit
Install a newer version of bats
I need this for executing bats tests in parallel
(`--jobs` flag).

Bats hasn't made a release in over a year, so
instead of using a release I am installing
the archive of the (current) master commit.
  • Loading branch information
2opremio committed Dec 5, 2019
commit d8eeed53c9a2d381294609692d4dff3b79d7f468
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SUDO := $(shell docker info > /dev/null 2> /dev/null || echo "sudo")

TEST_FLAGS?=

BATS_VERSION := 1.1.0
BATS_COMMIT := 87b16eb8ec381beca7f05d028e4ad7cf3f647a0f
SHELLCHECK_VERSION := 0.7.0
SHFMT_VERSION := 2.6.4

Expand Down Expand Up @@ -135,12 +135,12 @@ cache/%/shfmt-$(SHFMT_VERSION):
mkdir -p cache/$*
curl --fail -L -o $@ "https://github.com/mvdan/sh/releases/download/v$(SHFMT_VERSION)/shfmt_v$(SHFMT_VERSION)_`echo $* | tr - _`"

test/e2e/bats: cache/bats-v$(BATS_VERSION).tar.gz
test/e2e/bats: cache/bats-core-$(BATS_COMMIT).tar.gz
mkdir -p $@
tar -C $@ --strip-components 1 -xzf $<

cache/bats-v$(BATS_VERSION).tar.gz:
curl --fail -L -o $@ https://github.com/bats-core/bats-core/archive/v$(BATS_VERSION).tar.gz
cache/bats-core-$(BATS_COMMIT).tar.gz:
curl --fail -L -o $@ https://github.com/bats-core/bats-core/archive/$(BATS_COMMIT).tar.gz

$(GOBIN)/fluxctl: $(FLUXCTL_DEPS) $(GENERATED_TEMPLATES_FILE)
go install ./cmd/fluxctl
Expand Down