mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2024-12-26 23:30:27 +08:00
f9ca60b486
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
19 lines
380 B
Bash
Executable File
19 lines
380 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
check-compat() (
|
|
set -e
|
|
go run github.com/smola/gocompat/cmd/gocompat compare --git-refs="remotes/origin/master..$(git rev-parse HEAD)" --go1compat ./...
|
|
)
|
|
|
|
export GO111MODULE=on
|
|
if [[ "$TRAVIS" == "true" ]]; then
|
|
git fetch origin master:remotes/origin/master > /dev/null 2>&1
|
|
fi
|
|
|
|
if ! check-compat; then
|
|
echo ">> API Compatibility broken!!"
|
|
exit 1
|
|
fi
|
|
|
|
|