From 4771d0bb831b36328264816c72cd88f6340d9fc7 Mon Sep 17 00:00:00 2001 From: Paul Rogalinski Date: Wed, 1 Apr 2015 16:18:05 +0200 Subject: [PATCH] using TRAVIS_BUILD_NUMBER instead of TRAVIS_JOB_ID --- .travis.sh | 4 ++-- fake_travis_build.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.sh b/.travis.sh index 35fe1f950..93590b7b7 100755 --- a/.travis.sh +++ b/.travis.sh @@ -19,7 +19,7 @@ elif [ $PUBLISHMETA ] && [ $PUBLISH_URL ] ; then --form "revision=${REVISION}" \ --form "branch=${BRANCH}" \ --form "last_commit_date=${LAST_COMMIT_DATE}" \ - --form "travis_job_id=${TRAVIS_JOB_ID}" \ + --form "travis_build_number=${TRAVIS_BUILD_NUMBER}" \ ${PUBLISH_URL} else if [ $PUBLISH_URL ] ; then @@ -40,7 +40,7 @@ else --form "revision=${REVISION}" \ --form "branch=${BRANCH}" \ --form "last_commit_date=${LAST_COMMIT_DATE}" \ - --form "travis_job_id=${TRAVIS_JOB_ID}" \ + --form "travis_build_number=${TRAVIS_BUILD_NUMBER}" \ ${PUBLISH_URL} else make -j2 diff --git a/fake_travis_build.sh b/fake_travis_build.sh index 3c3396be6..8c0d62ddb 100755 --- a/fake_travis_build.sh +++ b/fake_travis_build.sh @@ -6,7 +6,7 @@ targets=("PUBLISHMETA=True" "RUNTESTS=True" \ "TARGET=OLIMEXINO" "TARGET=PORT103R" "TARGET=SPARKY" "TARGET=STM32F3DISCOVERY" \ "TARGET=ALIENWIIF1" "TARGET=ALIENWIIF3") -export TRAVIS_JOB_ID=$(date +%s) +export TRAVIS_BUILD_NUMBER=$(date +%s) for target in "${targets[@]}" do unset RUNTESTS PUBLISHMETA TARGET OPBL