forked from EventStore/EventStore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
auto.sh
executable file
·22 lines (22 loc) · 892 Bytes
/
auto.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
notify-send "Auto Started" "" -i $PWD/tools/autotest-images/circleWIN.png -t 1000
while true
do
if [ ! -z $(inotifywait --recursive -qre modify --format "%w%f" ./ | grep -v -f includes) ]
then
sleep .25
/opt/mono/bin/xbuild src/EventStore.sln /p:Configuration=Debug /verbosity:0 /nologo
if [ $? -eq 0 ]
then
./run_tests.sh -m /opt/mono -x LongRunning
if [ $? -eq 0 ]
then
notify-send "Passed" "Tests Passed" -i $PWD/tools/autotest-images/circleWIN.png -t 1000
else
notify-send "Failed" "Tests Failed" -i $PWD/tools/autotest-images/circleFAIL.png -t 1000
fi
else
notify-send "Failed" "Build Failed" -i $PWD/tools/autotest-images/circleFAIL.png -t 1000
fi
fi
done