machine:
  node:
    version: 6.1.0

dependencies:
  cache_directories:
    - "src/node_modules"
    - ~/.cache/yarn
  override:
    - yarn
    - yarn check
    - cd src && yarn check
  post:
    - sudo dpkg --add-architecture i386
    - sudo add-apt-repository ppa:ubuntu-wine/ppa -y
    - sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
    - echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

    - sudo apt-get update
    - sudo apt-get install --no-install-recommends -y
        icnsutils graphicsmagick xz-utils jq
        wine1.8 mono-devel ca-certificates-mono
        gcc-multilib g++-multilib
    - unset DISPLAY && wineboot --init

    - npm run build
    - npm run package:windows
    - npm run package:mac
    - npm run package:linux
    - sh -x ./scripts/cp_artifacts.sh release $CIRCLE_ARTIFACTS

test:
  override:
    - yarn test
  post:
    - mv test-results.xml $CIRCLE_TEST_REPORTS/

machine:
  node:
    version: 6.11.3

dependencies:
  cache_directories:
    - "src/node_modules"
    - ~/.cache/yarn
  override:
    - yarn
    - yarn check
    - cd src && yarn check
  post:
    - sudo dpkg --add-architecture i386
    - sudo add-apt-repository ppa:ubuntu-wine/ppa -y
    - sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
    - echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

    - sudo apt-get update
    - sudo apt-get install --no-install-recommends -y
        icnsutils graphicsmagick xz-utils jq
        wine1.8 mono-devel ca-certificates-mono
        gcc-multilib g++-multilib
    - unset DISPLAY && wineboot --init

    - npm run build
    - npm run package:windows
    - npm run package:mac
    - npm run package:linux
    - sh -x ./scripts/cp_artifacts.sh release $CIRCLE_ARTIFACTS

test:
  override:
    - yarn test
  post:
    - mv test-results.xml $CIRCLE_TEST_REPORTS/

Use latest Node.js LTS in CircleCI
Use latest Node.js LTS in CircleCI
