sudo: false
language: node_js

node_js:
    - "6.1.0"
env:
    - CXX=g++-4.8

before_install:
    - apt-get install libfontconfig-dev

install:
    - npm i -g yarn
    - yarn install

addons:
    apt:
        sources:
            - ubuntu-toolchain-r-test
        packages:
            - g++-4.8

sudo: false
language: node_js

node_js:
    - "6.1.0"
env:
    - CXX=g++-4.8

install:
    - npm i -g yarn
    - yarn install

addons:
    apt:
        sources:
            - ubuntu-toolchain-r-test
        packages:
            - g++-4.8
            - libfontconfig-dev

Move package install command to addons.apt.packages
Move package install command to addons.apt.packages
