language : node_js
node_js :
    - "0.12"
    - "4"
    - "5"
python:
    - "2.7"
before_install:
    - sudo apt-get update -y -qq
    - sudo apt-get install -y graphviz plotutils imagemagick
    - export PATH=$HOME/.local/bin:$PATH
    - pip install image scruffy --user `whoami`
    - npm install -g npm
before_script :
    - npm install -g grunt-cli
sudo: false

language : node_js
node_js :
    - "0.12"
    - "4"
    - "5"
addons:
    apt:
        packages:
        - graphviz
        - plotutils
        - imagemagick
python:
    - "2.7"
before_install:
    - npm install -g npm
before_script :
    - export PATH=$HOME/.local/bin:$PATH
    - pip install image scruffy --user `whoami`
    - npm install -g grunt-cli
sudo: false

Install dependencies by the apt addon (again) and move the python modules to before_script
Install dependencies by the apt addon (again) and move the python modules to before_script

I would have needed enable sudo again, if I could not use the apt addon.
