os: - linux - osx language: node_js node_js: - '6' - '8' - '10' before_install: - 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then CC=gcc-4.9; fi' - 'if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then CXX=g++-4.9; fi' before_script: - export NPMVERSION=$(echo "$($(which npm) -v)"|cut -c1) - 'if [[ $NPMVERSION == 5 ]]; then npm install -g npm@5; fi' - npm -v - npm install -g homebridge - npm install -g homebridge-http-webhooks - npm install -g homebridge-sun-position - export NODE_GLOBAL_DIR=$(npm root -g) - npm install winston@2.3.1 - 'npm install https://github.com/yunkong2/yunkong2.js-controller/tarball/master --production' addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 - libavahi-compat-libdnssd-dev