Skip to content

Commit

Permalink
Bump version 1.3.3 to 1.3.4 (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
semihalev authored Aug 11, 2023
1 parent 2f7266f commit 08349f6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,39 @@ GO ?= go
TESTFOLDER := $(shell $(GO) list ./...)
BIN = sdns

all: generate test build tidy
all: generate tidy test build

.PHONY: test
test:
echo "mode: atomic" > coverage.out
for d in $(TESTFOLDER); do \
$(GO) test -v -covermode=atomic -race -coverprofile=profile.out $$d > tests.out; \
cat tests.out; \
if grep -q "^--- FAIL" tests.out; then \
rm -rf tests.out; \
$(GO) test -v -covermode=atomic -race -coverprofile=profile.out $$d > profiles.out; \
cat profiles.out; \
if grep -q "^--- FAIL" profiles.out; then \
rm -rf profiles.out; \
rm -rf profile.out; \
exit 1; \
fi; \
if [ -f profile.out ]; then \
cat profile.out | grep -v "mode:" >> coverage.out; \
rm -rf profile.out; \
fi; \
rm -rf tests.out; \
rm -rf profiles.out; \
done

.PHONY: generate
generate:
$(GO) generate

.PHONY: build
build:
$(GO) build

.PHONY: tidy
tidy:
$(GO) mod tidy

.PHONY: build
build:
$(GO) build

.PHONY: clean
clean:
rm -rf $(BIN)
rm -rf generated.go
rm -rf zregister.go
2 changes: 1 addition & 1 deletion sdns.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/semihalev/sdns/server"
)

const version = "1.3.3"
const version = "1.3.4"

var (
flagcfgpath string
Expand Down
5 changes: 3 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: sdns
adopt-info: sdns
summary: A DNS Resolver Server.
description: |
Privacy important, fast, recursive dns resolver server with dnssec support
A high-performance, recursive DNS resolver server with DNSSEC support, focused on preserving privacy.
architectures:
- build-on: armhf
Expand All @@ -23,12 +23,13 @@ parts:
snapcraftctl pull
last_committed_tag="$(git describe --tags --abbrev=0)"
last_committed_tag_ver="$(echo ${last_committed_tag} | sed 's/v//')"
last_released_tag="$(snap info sdns | awk '$1 == "latest/beta:" { print $2 }')"
last_released_tag="$(snap info sdns | awk '$1 == "latest/stable:" { print $2 }')"
if [ "${last_committed_tag_ver}" != "${last_released_tag}" ]; then
git fetch
git checkout "${last_committed_tag}"
fi
snapcraftctl set-version "$(git describe --tags | sed 's/v//')"
snapcraftctl set-grade stable
stage:
- bin/sdns
apps:
Expand Down

0 comments on commit 08349f6

Please sign in to comment.