-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into master_add_feature
- Loading branch information
Showing
267 changed files
with
7,565 additions
and
1,292 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 |
---|---|---|
@@ -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 "log.Test" ${f} && files="${files} $f" | ||
done | ||
done | ||
|
||
ret=0 | ||
for f in ${files} | ||
do | ||
echo "contains log.Test :$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,27 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
VERSION=$(git describe --always --tags --long) | ||
PLATFORM="" | ||
|
||
if [[ ${TRAVIS_OS_NAME} == 'linux' ]]; then | ||
PLATFORM="linux" | ||
elif [[ ${TRAVIS_OS_NAME} == 'osx' ]]; then | ||
PLATFORM="darwin" | ||
else | ||
PLATFORM="windows" | ||
exit 1 | ||
fi | ||
|
||
env GO111MODULE=on make ontology-${PLATFORM} tools-${PLATFORM} | ||
mkdir tool-${PLATFORM} | ||
cp ./tools/abi/* tool-${PLATFORM} | ||
cp ./tools/sigsvr* tool-${PLATFORM} | ||
|
||
zip -q -r tool-${PLATFORM}.zip tool-${PLATFORM}; | ||
rm -r tool-${PLATFORM}; | ||
|
||
set +x | ||
echo "ontology-${PLATFORM}-amd64 |" $(md5sum ontology-${PLATFORM}-amd64|cut -d ' ' -f1) | ||
echo "tool-${PLATFORM}.zip |" $(md5sum tool-${PLATFORM}.zip|cut -d ' ' -f1) | ||
|
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,22 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
VERSION=$(git describe --always --tags --long) | ||
|
||
if [ $TRAVIS_OS_NAME == 'linux' ]; then | ||
echo "linux sys" | ||
env GO111MODULE=on make all | ||
env GO111MODULE=on go mod vendor | ||
cd ./wasmtest && bash ./run-wasm-tests.sh && cd ../ | ||
bash ./.travis.check-license.sh | ||
bash ./.travis.check-templog.sh | ||
bash ./.travis.gofmt.sh | ||
bash ./.travis.gotest.sh | ||
elif [ $TRAVIS_OS_NAME == 'osx' ]; then | ||
echo "osx sys" | ||
env GO111MODULE=on make all | ||
else | ||
echo "win sys" | ||
env GO111MODULE=on CGO_ENABLED=1 go build -ldflags "-X github.com/ontio/ontology/common/config.Version=${VERSION}" -o ontology-windows-amd64 main.go | ||
env GO111MODULE=on go build -ldflags "-X github.com/ontio/ontology/common/config.Version=${VERSION}" -o sigsvr-windows-amd64 sigsvr.go | ||
fi |
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.