-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We no longer need the manual docker image nor the odd makefile. We now also collect the result files.
- Loading branch information
Showing
8 changed files
with
54 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM golang:1.11-alpine | ||
|
||
RUN apk add --no-cache bash \ | ||
build-base \ | ||
git \ | ||
libffi-dev \ | ||
ruby-bundler \ | ||
ruby-dev | ||
|
||
# Install summon prerequisites | ||
WORKDIR /summon | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
# Install test (Ruby) prerequisites | ||
WORKDIR /summon/acceptance | ||
COPY acceptance/Gemfile acceptance/Gemfile.lock ./ | ||
RUN bundle install | ||
|
||
# Build summon | ||
WORKDIR /summon | ||
COPY . . | ||
RUN go build -o /bin/summon cmd/main.go | ||
|
||
# Run tests | ||
WORKDIR /summon/acceptance | ||
CMD ["cucumber"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash -e | ||
|
||
OUTPUT_DIR="$PWD/output/acceptance" | ||
|
||
rm -f "$OUTPUT_DIR/*.xml" | ||
|
||
echo "Running acceptance tests" | ||
docker build --pull -t summon-acceptance -f Dockerfile.acceptance . | ||
|
||
docker run --rm -t \ | ||
-v "$OUTPUT_DIR:/summon/acceptance/output" \ | ||
summon-acceptance bash -c 'cucumber --format junit --out ./output' | ||
|
||
echo "Results are in $OUTPUT_DIR" |