Skip to content

Commit

Permalink
fix typo,add some log
Browse files Browse the repository at this point in the history
  • Loading branch information
phorcys committed Oct 14, 2018
1 parent 29fd0e5 commit d461eac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis/build-linux.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion .travis/deploy-linux.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand Down

0 comments on commit d461eac

Please sign in to comment.