Better way of determining whether a commit is a PR

This commit is contained in:
Josh Stewart 2020-01-30 23:48:11 +11:00
parent 68f2288dd7
commit b3d7c9df9f
1 changed files with 1 additions and 1 deletions

View File

@ -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"