Newer
Older
Twilight / Twilight.cmd
@Taehui Taehui 22 days ago 551 bytes v1.0-SNAPSHOT
@ECHO OFF

CALL gradlew buildFatJar
Robocopy build\libs . Twilight.jar

CHOICE /M TEST
SET TEST=%ERRORLEVEL%
IF %TEST% == 1 (
	CALL gradlew test
)
IF %TEST% == 1 (
	IF NOT %ERRORLEVEL% == 0  (
		PAUSE
	)
)

CHOICE /M DEPLOY
IF %ERRORLEVEL% == 1 (
	Robocopy . \\taehui\taehui Twilight.jar /MOV
)

CHOICE /M APPLY
IF %ERRORLEVEL% == 1 (
	wsl ssh taehui@taehui sudo service twilight restart
)

CHOICE /M VCS
IF %ERRORLEVEL% == 1 (
	git add *
	git commit -m v1.0-SNAPSHOT
	git checkout master
	git merge develop
	git push
	git checkout develop
	git push
)