Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit 18de651

Browse files
authored
Run tutorial test in make ci (#302)
Signed-off-by: Bill Farner <[email protected]>
1 parent 7c59ff4 commit 18de651

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ ifeq (${DISABLE_OPTIMIZATION},true)
1111
VERSION:="$(VERSION)-noopt"
1212
endif
1313

14-
.PHONY: clean all fmt vet lint build test vendor-update containers check-docs
14+
.PHONY: clean all fmt vet lint build test vendor-update containers check-docs tutorial-test
1515
.DEFAULT: all
1616
all: clean fmt vet lint build test binaries
1717

18-
ci: fmt vet lint check-docs coverage
18+
ci: fmt vet lint check-docs coverage tutorial-test
1919

2020
AUTHORS: .mailmap .git/HEAD
2121
git log --format='%aN <%aE>' | sort -fu > $@
@@ -110,6 +110,10 @@ coverage:
110110
go test -test.short -race -coverprofile="../../../$$pkg/coverage.txt" $${pkg} || exit 1; \
111111
done
112112

113+
tutorial-test:
114+
@echo "+ $@"
115+
./scripts/tutorial-test
116+
113117
test-full:
114118
@echo "+ $@"
115119
@go test -race $(PKGS)

scripts/tutorial_test renamed to scripts/tutorial-test

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ set -o errexit
44
set -o nounset
55

66
HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
7-
cd "$HERE"
8-
cd ..
7+
cd "$HERE/.."
98

109
make binaries
1110

@@ -15,6 +14,8 @@ cleanup() {
1514
}
1615
trap cleanup EXIT
1716

17+
mkdir -p ~/.infrakit/plugins
18+
1819
mkdir -p tutorial
1920
build/infrakit-instance-file --dir ./tutorial/ &
2021
build/infrakit-group-default --poll-interval 500ms &

0 commit comments

Comments
 (0)