-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest and Build Release.cmd
More file actions
19 lines (19 loc) · 909 Bytes
/
Test and Build Release.cmd
File metadata and controls
19 lines (19 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
rmdir /s /q release
rmdir /s /q "C Sharp/Object Validator/bin"
dotnet pack "C Sharp/Object Validator"
dotnet nuget locals all --clear
dotnet test "C Sharp/Object Validator Test"
if %errorlevel% neq 0 exit /b %errorlevel%
call "Java/Object Validator/gradlew" -p "Java/Object Validator" clean
call "Java/Object Validator/gradlew" -p "Java/Object Validator" test
if %errorlevel% neq 0 exit /b %errorlevel%
call "Java/Object Validator/gradlew" -p "Java/Object Validator" build
cd "TypeScript/Object Validator"
call npm i
call npm run prepublishOnly
if %errorlevel% neq 0 exit /b %errorlevel%
cd ../..
robocopy "C Sharp/Object Validator/bin/Release" release *.nupkg
robocopy "Java/Object Validator/lib/build/libs" release *.?.jar
robocopy "TypeScript/Object Validator/dist" release/@quicksilver0218/object-validator/dist
robocopy "TypeScript/Object Validator" release/@quicksilver0218/object-validator package.json