You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
456 B
37 lines
456 B
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
dir=`pwd`
|
|
|
|
cd $dir
|
|
rm -rf ./a
|
|
kratos new a
|
|
cd ./a/cmd && go build
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed: all"
|
|
exit 1
|
|
else
|
|
rm -rf ../../a
|
|
fi
|
|
|
|
cd $dir
|
|
rm -rf ./b
|
|
kratos new b --grpc
|
|
cd ./b/cmd && go build
|
|
if [ $? -ne 0 ];then
|
|
echo "Failed: --grpc"
|
|
exit 1
|
|
else
|
|
rm -rf ../../b
|
|
fi
|
|
|
|
cd $dir
|
|
rm -rf ./c
|
|
kratos new c --http
|
|
cd ./c/cmd && go build
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed: --http"
|
|
exit 1
|
|
else
|
|
rm -rf ../../c
|
|
fi
|
|
|