-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathprepare_source.sh
More file actions
executable file
·52 lines (48 loc) · 1.27 KB
/
prepare_source.sh
File metadata and controls
executable file
·52 lines (48 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
set -e
echo "Что делаем?"
echo "1) git pull"
echo "2) nuget restore"
echo "3) cleanup packages directories"
echo "4) cleanup bin and obj directories"
echo "5) run dotnet tests"
echo "6) run Net4.x tests"
echo "Можно вызывать вместе, например git+nuget=12"
read case;
cd "$(dirname "$0")"
case $case in
*4*)
rm -v -f -R ../QSProjects/*/bin
rm -v -f -R ../QSProjects/*/*/bin
rm -v -f -R ../My-FyiReporting/*/bin
rm -v -f -R ../My-FyiReporting/*/*/bin
rm -v -f -R ../QSProjects/*/obj
rm -v -f -R ../QSProjects/*/*/obj
rm -v -f -R ../My-FyiReporting/*/obj
rm -v -f -R ../My-FyiReporting/*/*/obj
;;&
*3*)
rm -v -f -R ./packages/*
rm -v -f -R ../My-FyiReporting/packages/*
;;&
*1*)
cd ../Gtk.DataBindings
git pull --autostash
cd ../My-FyiReporting
git pull --autostash
cd ../QSProjects
git pull --autostash
;;&
*2*)
nuget restore ../QSProjects/QSProjectsLib.sln;
nuget restore ../My-FyiReporting/MajorsilenceReporting-Linux-GtkViewer.sln
;;&
*5*)
dotnet test QSProjects.dotnet.sln
;;&
*6*)
msbuild /p:Configuration=Debug /p:Platform=x86 QSProjectsLib.sln
mono ~/.nuget/packages/nunit.consolerunner/3.16.3/tools/nunit3-console.exe QS.LibsTest/bin/Debug/QS.LibsTest.dll --framework=mono-4.0
;;&
esac
read -p "Press enter to exit"