Skip to content

Commit a8ad6c0

Browse files
committed
Update to hprose 2.0
1 parent 7efa6e2 commit a8ad6c0

File tree

197 files changed

+16466
-27512
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

197 files changed

+16466
-27512
lines changed

.codebeatignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
examples/**
2+
bench/**

.codebeatsettings

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"GOLANG": {
3+
"ABC": [40, 45, 50, 55],
4+
"ARITY": [12, 15, 20, 25],
5+
"BLOCK_NESTING": [5, 8, 10, 20],
6+
"CYCLO": [30, 40, 50, 60],
7+
"LOC": [50, 60, 70, 80],
8+
"TOTAL_COMPLEXITY": [400, 600, 800, 1000],
9+
"TOTAL_LOC": [800, 1000, 1500, 3000],
10+
"TOO_MANY_FUNCTIONS": [50, 60, 70, 80],
11+
"TOO_MANY_IVARS": [20, 25, 30, 40]
12+
}
13+
}

.generate_coverage.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash -e
2+
# Requires installation of: `github.com/wadey/gocovmerge`
3+
4+
cd $GOPATH/src/github.com/hprose/hprose-golang
5+
6+
rm -rf ./cov
7+
mkdir cov
8+
9+
i=0
10+
for dir in $(find . -maxdepth 10 -not -path './examples/*' -not -path './.git*' -not -path '*/_test.go' -type d);
11+
do
12+
if ls ${dir}/*.go &> /dev/null; then
13+
go test -v -covermode=atomic -coverprofile=./cov/$i.out ./${dir}
14+
i=$((i+1))
15+
fi
16+
done
17+
18+
gocovmerge ./cov/*.out > full_cov.out
19+
rm -rf ./cov

.gitignore

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Compiled Object files, Static and Dynamic libs (Shared Objects)
2+
*.o
3+
*.a
4+
*.so
5+
6+
# Folders
7+
_obj
8+
_test
9+
10+
# Architecture specific extensions/prefixes
11+
*.[568vq]
12+
[568vq].out
13+
14+
*.cgo1.go
15+
*.cgo2.c
16+
_cgo_defun.c
17+
_cgo_gotypes.go
18+
_cgo_export.*
19+
20+
_testmain.go
21+
22+
*.exe
23+
*.test
24+
*.prof
25+
26+
coverage.txt
27+
28+
.idea
29+

.travis.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
language: go
2+
3+
sudo: false
4+
5+
go:
6+
- 1.6
7+
- 1.7
8+
- tip
9+
10+
before_install:
11+
- go get github.com/wadey/gocovmerge
12+
- go get github.com/mattn/goveralls
13+
- go get golang.org/x/tools/cmd/cover
14+
- go get github.com/hprose/hprose-go
15+
16+
install:
17+
- go get -d -v ./...
18+
19+
script:
20+
- go test -short -v ./...
21+
22+
after_success:
23+
- bash .generate_coverage.sh
24+
- goveralls -coverprofile=full_cov.out -service=travis-ci

LICENSE.md

100644100755
File mode changed.

0 commit comments

Comments
 (0)