From d461eac9566408b0877dddb5f0294b1ca5fb9b0e Mon Sep 17 00:00:00 2001 From: phorcys Date: Sun, 14 Oct 2018 11:46:33 +0800 Subject: [PATCH] fix typo,add some log --- .travis/build-linux.bash | 1 + .travis/deploy-linux.bash | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis/build-linux.bash b/.travis/build-linux.bash index bc74f3c..fe930e2 100755 --- a/.travis/build-linux.bash +++ b/.travis/build-linux.bash @@ -17,4 +17,5 @@ cmake --build . cd .. # If it compiled succesfully let's deploy +echo "build finished , result : $? , TRAVIS_BRANCH $TRAVIS_BRANCH , TRAVIS_PULL_REQUEST $TRAVIS_PULL_REQUEST" if [ $? -eq 0 ] && [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then /bin/bash -ex .travis/deploy-linux.bash ; fi diff --git a/.travis/deploy-linux.bash b/.travis/deploy-linux.bash index 7df18e8..53eb990 100755 --- a/.travis/deploy-linux.bash +++ b/.travis/deploy-linux.bash @@ -11,9 +11,10 @@ do modname=`echo $modfullname |sed -e "s/-.*//g"` modversion=`echo $modfullname |sed -e "s/.*-//g"` lastcommit=`git log ../../${modname}| head -n 1 | awk '{print $2}'` - lastcommittime=`git log ../../InventorySort| head -n 3 |tail -n 1| sed -e "s/Date:\s*//g"` + lastcommittime=`git log ../../${modname}| head -n 3 |tail -n 1| sed -e "s/Date:\s*//g"` lastbuildcommit=`cat ${HOME}/.taiwu/${modname}.commit` lastbuildcommittime=`cat ${HOME}/.taiwu/${modname}.commit.time` + echo "Processing Mod $modname commit $lastcommit , last build commit $lastbuildcommit \n last commit time: $lastcommittime last build commit time : $lastbuildcommittime" if [ "$lastcommit" != "$lastbuildcommit" ]