Skip to content

Commit 63f9818

Browse files
committed
Basic ci script
1 parent 21295e8 commit 63f9818

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

ci.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
SCRIPT_DIR=$(cd $(dirname "$SCRIPT") && pwd)
6+
RABBIT_DIR=$SCRIPT_DIR/../rabbit
7+
8+
cd $RABBIT_DIR
9+
make start-background-broker
10+
cd $SCRIPT_DIR
11+
12+
CLIENT_DIR=$SCRIPT_DIR/projects/client/RabbitMQ.Client
13+
UNIT_DIR=$SCRIPT_DIR/projects/client/Unit
14+
15+
dotnet restore $CLIENT_DIR
16+
dotnet build $CLIENT_DIR
17+
dotnet restore $UNIT_DIR
18+
dotnet build $UNIT_DIR
19+
cd $UNIT_DIR
20+
21+
set +e
22+
dotnet test -f netcoreapp1.0 --where='cat != RequireSMP & cat != LongRunning & cat != GCTest'
23+
EXIT_CODE=$?
24+
25+
set -e
26+
$RABBIT_DIR/scripts/rabbitmqctl stop
27+
28+
exit $EXIT_CODE

0 commit comments

Comments
 (0)