Skip to content

Commit

Permalink
travis: try again for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
todbot committed Oct 10, 2017
1 parent 912031d commit c35a698
Showing 1 changed file with 11 additions and 27 deletions.
38 changes: 11 additions & 27 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# dist: trusty
dist: trusty
language: cpp
addons:
apt:
Expand Down Expand Up @@ -80,16 +80,16 @@ before_install:
#- ls -al /lib/i386-linux-gnu/*usb*

# use g++-4.8 on Linux
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
- $CXX --version
#- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
#- $CXX --version

# figure out if we should publish
- PUBLISH_BINARY=false
# if we are building a tag then publish
- echo $TRAVIS_BRANCH
- echo `git describe --tags --always HEAD`
- if [[ $TRAVIS_BRANCH == `git describe --tags --always HEAD` ]]; then PUBLISH_BINARY=true; fi;
- echo "Publishing native platform Binary Package? ->" $PUBLISH_BINARY
## figure out if we should publish
#- PUBLISH_BINARY=false
## if we are building a tag then publish
#- echo $TRAVIS_BRANCH
#- echo `git describe --tags --always HEAD`
#- if [[ $TRAVIS_BRANCH == `git describe --tags --always HEAD` ]]; then PUBLISH_BINARY=true; fi;
#- echo "Publishing native platform Binary Package? ->" $PUBLISH_BINARY

# Cleanup the output of npm
- npm config set progress false
Expand All @@ -98,7 +98,6 @@ before_install:
install:
# ensure source install works
#- export V=1
#- npm install electron-builder@next # force install next version to test electron-builder
- npm install
- npm run postinstall

Expand All @@ -125,22 +124,7 @@ script:
# after_success:
# - bash <(curl -s https://codecov.io/bash)
#
# FIXME: need to parameterize this per OS, how?
before_deploy:
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export DFILE1=$(ls dist/mac/Blink1Control2*.dmg); fi
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export DFILE2=$(ls dist/mac/Blink1Control2*.zip); fi
# - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DFILE1=$(ls dist/linux/Blink1Control2*.zip); fi
# - export RELEASE_FILE1=$(ls dist/mac/Blink1Control2*.dmg)
# - export RELEASE_FILE2=$(ls dist/mac/Blink1Control2*.zip)

deploy:
# skip_cleanup: true
# provider: releases
# api_key:
# secure: mg9kDnOTZdDNLrU+0ZzNeqA1hP9x3uUW5POEA8+nL1odEWQnBVL5gmFKSqV8zub52yazdEebCiDad/WpX2I7F20PmZA/LDlQO6TWdVhT5BEfgdpatOtdyvGggd6e2AG+Rv73z5Svkf+N6wCPXxNMmBl+OqU5fZigZDpib/SPijobAKvwOnHfSURL1NiBTrp5vzdpX21M7p87MrA19Pojcn7WFZ3KR0l79oXorlr6HchNY645UkdLwDHenYMGto4h5ShaLW/XYGQFulQY+RYH3RR4AVxRVxB1xsW8jvu/EQjCcAQg3pkHMw8wAbVG3siiZZLKgHfwIF3U5o7RHoYchvOxHF0FMK+NMgZdJeZBBLXm6r6UnsNXkZOHJh4QbgMRqcFxHZdLNFg6PVTNrWvLsngS/gnlMy7UxaW598vNtL2gOQ9LmtOfJmxu2exYmKfwM1tTLsMt7H5Qc2JgGQi1ZZGzRVbS7r0Xjrl25+NXAm/OylDl2Dh6zkCGm4X0d77M5RplL9+Ov+7ZEbRo8uNqyloEJGNzOVC+avCJADCNFbA2PcppAdASx7YTeshXSwm3QfNIIXpCtYjFeydKbW8V0fXy8cCX27InAD6W/IykBggaO+qUW4uBZ0eOk2s0VArLwmPQVL10yYIfGl9PTjRfbVJYjYCf3qXjSn/qWXYIu0g=
# file:
# - "${DFILE1}"
# - "${DFILE2}"
# on:
# repo: todbot/Blink1Control2
# tags: true
# skip_cleanup: true

0 comments on commit c35a698

Please sign in to comment.