language: node_js

node_js: "6"

addons:
  apt:
    packages:
      - fakeroot
      - dpkg
      - rpm
      - libdbus-1-dev
      - libglib2.0-dev
      - dbus

before_install:
  - cd linux/

script:
  - yarn build

cache:
  yarn: true
  directories:
  - linux/node_modules

deploy:
  - provider: packagecloud
    repository: "headset-electron"
    username: "headsetapp"
    token: "${PACKAGECLOUD_TOKEN}"
    dist: "ubuntu/trusty"
    local_dir: build/installers
    package_glob: "*.deb"
    skip_cleanup: true
    on:
      branch: master
      tags: true
  - provider: packagecloud
    repository: "headset-electron"
    username: "headsetapp"
    token: "${PACKAGECLOUD_TOKEN}"
    dist: "fedora/26"
    local_dir: build/installers
    package_glob: "*.rpm"
    skip_cleanup: true
    on:
      branch: master
      tags: true

language: node_js

node_js: "6"

addons:
  apt:
    packages:
      - fakeroot
      - dpkg
      - rpm
      - libdbus-1-dev
      - libglib2.0-dev
      - dbus

before_install:
  - cd linux/

script:
  - yarn build

git:
  depth: 3

cache:
  yarn: true
  directories:
  - linux/node_modules

deploy:
  - provider: packagecloud
    repository: "headset-electron"
    username: "headsetapp"
    token: "${PACKAGECLOUD_TOKEN}"
    dist: "ubuntu/trusty"
    local_dir: build/installers
    package_glob: "*.deb"
    skip_cleanup: true
    on:
      branch: master
      tags: true
  - provider: packagecloud
    repository: "headset-electron"
    username: "headsetapp"
    token: "${PACKAGECLOUD_TOKEN}"
    dist: "fedora/26"
    local_dir: build/installers
    package_glob: "*.rpm"
    skip_cleanup: true
    on:
      branch: master
      tags: true

Reduce depth of `git clone` on Travis This is primarily to speed up the build on Travis
Reduce depth of `git clone` on Travis
This is primarily to speed up the build on Travis
