From b3d7c9df9f865438831ba79a0d462f04c41d926e Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Thu, 30 Jan 2020 23:48:11 +1100 Subject: [PATCH] Better way of determining whether a commit is a PR --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 568a9984..38833838 100644 --- a/.travis.yml +++ b/.travis.yml @@ -61,7 +61,7 @@ script: - platformio run -e teensy35 -e teensy40 -e megaatmega2560 # The uploading of the firmware and doxygen files are only performed on the master branch - | - if [ "$TRAVIS_BRANCH" == "master" ]; then + if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then # Upload ini and hex files to speeduino.com server curl -v https://speeduino.com:2078 || true curl -v --tlsv1.2 --ipv4 --user "speeduino_firmware@speeduino.com:$WEB_PWD" --basic -T "./.pio/build/megaatmega2560/firmware.hex" "https://speeduino.com:2078/bin/master.hex"