-
Notifications
You must be signed in to change notification settings - Fork 0
/
qa-init.cmd
70 lines (57 loc) · 1.59 KB
/
qa-init.cmd
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
setlocal
echo on
set HERE=%~dp0
set PAKET=%HERE%tools/paket.exe
rem set FULLBUILD=%HERE%packages/full-build/tools/fullbuild.exe
set FULLBUILD=fullbuild.exe --verbose
set PATH=%PATH%;%HERE%packages\NUnit.ConsoleRunner\tools
set PATH=%PATH%;%HERE%packages\Paket\tools
set PATH=%PATH%;%HERE%packages\full-build\tools
set LOCALFBREPO=%HERE%local\full-build
set LOCALCSREPO=%HERE%local\cassandra-sharp
set LOCALCSCREPO=%HERE%local\cassandra-sharp-contrib
set LOCALBIN=%HERE%local\bin
set QAFOLDER=%HERE%qa-init
set VERSION=%TIME:~0,2%.%TIME:~3,2%.%TIME:~6,2%
taskkill /im tgitcache.exe
:qa_folder_delete
if not exist %QAFOLDER% goto :qa_folder_deleted
rmdir /s /q %QAFOLDER%
goto :qa_folder_delete
:qa_folder_deleted
%FULLBUILD% init git %LOCALFBREPO% %QAFOLDER% || goto :ko
cd %QAFOLDER% || goto :ko
%FULLBUILD% clone * || goto :ko
%FULLBUILD% install || goto :ko
%FULLBUILD% package outdated || goto :ko
%FULLBUILD% package update || goto :ko
%FULLBUILD% convert --check * || goto :ko
%FULLBUILD% view all * || goto :ko
%FULLBUILD% view csc cassandra-sharp-contrib/* || goto :ko
%FULLBUILD% build all || goto :ko
pushd .full-build
git add *
git commit -am "qa"
git push origin master:master
popd
pushd cassandra-sharp
git add *
git commit -am "qa"
git push origin master:master
popd
pushd cassandra-sharp-contrib
git add *
git commit -am "qa"
git push origin master:master
popd
%FULLBUILD% history || goto :ko
%FULLBUILD% publish --push %VERSION% --view all * || goto :ko
%FULLBUILD% app list --version %VERSION% || goto :ko
:ok
cd %HERE%
echo *** SUCCESSFUL
exit /b 0
:ko
cd %HERE%
echo *** FAILURE
exit /b 5