-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add travis * refactor code * add makefile * fix makefile * update git ingore * add wallet.dat * clear code * update makefile * update * fix bug * update * clear code
- Loading branch information
Showing
21 changed files
with
275 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
cscope* | ||
vendor/* | ||
wallet.dat | ||
glide.lock | ||
.idea/ |
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,19 @@ | ||
#!/bin/bash | ||
unset dirs files | ||
dirs=$(go list -f {{.Dir}} ./... | grep -v /vendor/) | ||
for d in $dirs | ||
do | ||
for f in $d/*.go | ||
do | ||
grep -q "Copyright (C) 201[0-9] The [o|O]ntology Authors" $f || files="${files} $f" | ||
done | ||
done | ||
|
||
ret=0 | ||
for f in $files | ||
do | ||
echo "missing license:$f" | ||
ret=1 | ||
done | ||
|
||
exit $ret |
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,12 @@ | ||
#!/bin/bash | ||
# code from https://github.com/Seklfreak/Robyul2 | ||
unset dirs files | ||
dirs=$(go list -f {{.Dir}} ./... | grep -v /vendor/) | ||
for d in $dirs | ||
do | ||
for f in $d/*.go | ||
do | ||
files="${files} $f" | ||
done | ||
done | ||
diff <(gofmt -d $files) <(echo -n) |
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,10 @@ | ||
#!/bin/bash | ||
# code from https://github.com/Seklfreak/Robyul2 | ||
unset dirs files | ||
dirs=$(go list ./... | grep -v vendor/ | grep -v ontology-go-sdk$) | ||
set -x -e | ||
for d in $dirs | ||
do | ||
go test -v $d | ||
done | ||
go test ./ |
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,18 @@ | ||
dist: bionic | ||
|
||
language: go | ||
|
||
go_import_path: github.com/ontio/ontology-go-sdk | ||
|
||
os: | ||
- linux | ||
|
||
go: | ||
- 1.12.x | ||
|
||
script: | ||
- env GO111MODULE=on make | ||
- env GO111MODULE=on go mod vendor | ||
- bash ./.travis.check-license.sh | ||
- bash ./.travis.gofmt.sh | ||
- bash ./.travis.gotest.sh |
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,3 @@ | ||
GOFMT=gofmt | ||
format: | ||
$(GOFMT) -w ont_sdk.go |
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
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
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
Oops, something went wrong.