nukeop/nuclear

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
matrix:
  include:
    - os: osx
      osx_image: xcode9.2
      language: node_js
      node_js: "11"
      env:
        - ELECTRON_CACHE=$HOME/.cache/electron
        - ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
        - ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true

    - os: linux
      language: node_js
      node_js: "11"

    - os: windows
      language: node_js
      node_js:  "11"

env:
  global:
     - GITHASH=${TRAVIS_COMMIT::6}

before_install:
  - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install libdbus-1-dev -y; fi

script:
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then npm test && npm run build; fi
  - if [ "$TRAVIS_OS_NAME" == "windows" ]; then npm test && npm run build:win; fi
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then npm test && npm run build; fi


cache:
  directories:
    - node_modules
    - $HOME/.cache/electron
    - $HOME/.cache/electron-builder