16 lines
No EOL
492 B
Batchfile
16 lines
No EOL
492 B
Batchfile
PATH=%PATH_WIN%
|
|
|
|
: cd ../dart_framework && git pull origin master
|
|
: cd "../%JOB_NAME%"
|
|
|
|
set /p REV_OLD=<git_rev.txt
|
|
git rev-list --all HEAD --all --count > git_rev.txt
|
|
set /p REV_NEW=<git_rev.txt
|
|
|
|
IF %REV_OLD%==%REV_NEW% set RESULT=TRUE
|
|
IF NOT %REV_OLD%==%REV_NEW% set RESULT=FALSE
|
|
|
|
: echo %RESULT% > result.txt
|
|
: set /p RESULT=<result.txt
|
|
|
|
IF "%RESULT%"=="FALSE " flutter clean && flutter packages upgrade && flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs |