Skip to content

Commit

Permalink
Merge pull request #243 from kuzzleio/1-dev
Browse files Browse the repository at this point in the history
RELEASE 2.0.0
  • Loading branch information
jenow authored Jun 5, 2019
2 parents 7de5e2d + 587c887 commit de4982f
Show file tree
Hide file tree
Showing 359 changed files with 2,662 additions and 18,336 deletions.
10 changes: 0 additions & 10 deletions .ci/setup_and_test.sh

This file was deleted.

40 changes: 40 additions & 0 deletions .ci/test_with_coverage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/usr/bin/env bash
set -e

cover_dir=".cover"
profile="$cover_dir/cover.out"
mode=count
timeout=${TIMEOUT:=1m}

generate_cover_data() {
rm -rf "$cover_dir"
mkdir "$cover_dir"
go test -timeout "$timeout" -covermode="$mode" -coverprofile="$profile" ./...
}

show_cover_report() {
go tool cover -${1}="$profile"
}

linter_check() {
invalid_files=$(gofmt -l "$1")

if [ -n "${invalid_files}" ]; then
echo "Lint errors on the following files:"
echo ${invalid_files}
exit 1
fi
}

linter_check .
generate_cover_data
show_cover_report func

case "$1" in
"")
;;
--html)
show_cover_report html ;;
*)
echo >&2 "error: invalid option: $1"; exit 1 ;;
esac
4 changes: 4 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
List any dependencies that are required for this change.
-->

<!-- Uncomment this section to link PR on other SDKs
:large_blue_circle :arrow_right: https://github.com/kuzzleio/sdk-c/pull/
-->

### How should this be manually tested?

<!--
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.cover
.compiled_test
.idea
.vscode
main.go
Expand Down
Loading

0 comments on commit de4982f

Please sign in to comment.