-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There is a make task to check binaries correctnes that is always succ…
…ess. It seems the task release-test always was success, because the variables were not used in the strings. Extract code from Makefile to make it easy to run single tests and in same time to keep using only bash.
- Loading branch information
Showing
2 changed files
with
23 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
set -ueo pipefail | ||
|
||
VERSION_FULL="$(git describe --abbrev=0 --tags)" | ||
VERSION=${VERSION_FULL:1} | ||
ARCH=$(uname -m) | ||
|
||
docker run -v $(PWD)/dist:/dist --pull always --rm -it ubuntu bash -c "set -xe; dpkg -i /dist/toxiproxy_*_linux_${ARCH}.deb; ls -1 /usr/bin/toxiproxy-*; /usr/bin/toxiproxy-cli --version ; /usr/bin/toxiproxy-cli --version | grep -o -e 'toxiproxy-cli version ${VERSION}'" | ||
docker run -v $(PWD)/dist:/dist --pull always --rm -it centos bash -c "set -xe; yum install -y /dist/toxiproxy_*_linux_${ARCH}.rpm; ls -1 /usr/bin/toxiproxy-*; /usr/bin/toxiproxy-cli --version | grep \"toxiproxy-cli version ${VERSION}\"" | ||
docker run -v $(PWD)/dist:/dist --pull always --rm -it alpine sh -c "set -xe; apk add --allow-untrusted --no-cache /dist/toxiproxy_*_linux_${ARCH}.apk; ls -1 /usr/bin/toxiproxy-*; /usr/bin/toxiproxy-cli --version | grep \"toxiproxy-cli version ${VERSION}\"" | ||
|
||
tar -ztvf dist/toxiproxy_*_linux_amd64.tar.gz | grep toxiproxy-server | ||
tar -ztvf dist/toxiproxy_*_linux_amd64.tar.gz | grep toxiproxy-cli | ||
|
||
goreleaser build --rm-dist --single-target --skip-validate --id server | ||
./dist/toxiproxy-server-* --help 2>&1 | grep "Usage of ./dist/toxiproxy-server" | ||
|
||
goreleaser build --rm-dist --single-target --skip-validate --id client | ||
./dist/toxiproxy-cli-* --version | grep "toxiproxy-cli version ${VERSION}" |