fixed missing env var handling

This commit is contained in:
Paul Rogalinski 2015-04-01 17:23:33 +02:00
parent 9dc7b9a42d
commit 5435030229
1 changed files with 12 additions and 10 deletions

View File

@ -9,18 +9,20 @@ TARGET_FILE=obj/cleanflight_${TARGET}
if [ $RUNTESTS ] ; then if [ $RUNTESTS ] ; then
cd ./src/test && make test cd ./src/test && make test
elif [ $PUBLISHMETA ] && [ $PUBLISH_URL ] ; then elif [ $PUBLISHMETA ] ; then
RECENT_COMMITS=$(git shortlog -n25) if [ $PUBLISH_URL ] ; then
curl \ RECENT_COMMITS=$(git shortlog -n25)
--form "recent_commits=${RECENT_COMMITS}" \ curl \
--form "revision=${REVISION}" \ --form "recent_commits=${RECENT_COMMITS}" \
--form "branch=${BRANCH}" \ --form "revision=${REVISION}" \
--form "last_commit_date=${LAST_COMMIT_DATE}" \ --form "branch=${BRANCH}" \
--form "travis_build_number=${TRAVIS_BUILD_NUMBER}" \ --form "last_commit_date=${LAST_COMMIT_DATE}" \
${PUBLISH_URL} --form "travis_build_number=${TRAVIS_BUILD_NUMBER}" \
${PUBLISH_URL}
fi
else else
if [ $PUBLISH_URL ] ; then if [ $PUBLISH_URL ] ; then
make -j4 make -j2
if [ -f ${TARGET_FILE}.bin ] ; then if [ -f ${TARGET_FILE}.bin ] ; then