language: python
python:
  - "2.6"
  - "2.7"
  - "3.2"
  - "3.3"
  - "pypy"
install:
  - /usr/bin/pip install git+git://github.com/pyinvoke/invoke.git
  - 'if [ -n "${VAR+x}" ]; then: invoke install-nacl --library=$NACL; fi'
  - 'if [ -n "${VAR+x}" ]; then: invoke install --dev; fi'
script:
  - invoke tests --suite=$SUITE
env:
  global:
    - LD_LIBRARY_PATH=/usr/local/lib
    - LD_RUN_PATH=/usr/local/lib
  matrix:
    - NACL=libsodium SUITE=unit
    - "SUITE=pep8,lint"
matrix:
  exclude:
    - python: "2.6"
      env: "SUITE=pep8,lint"
    - python: "3.2"
      env: "SUITE=pep8,lint"
    - python: "3.3"
      env: "SUITE=pep8,lint"
    - python: "pypy"
      env: "SUITE=pep8,lint"

language: python
python:
  - "2.6"
  - "2.7"
  - "3.2"
  - "3.3"
  - "pypy"
install:
  - /usr/bin/pip install git+git://github.com/pyinvoke/invoke.git
  - 'if [ -n "${VAR+x}" ]; then: invoke install-nacl --library=$NACL; fi'
  - 'if [ -n "${VAR+x}" ]; then: invoke install --dev; fi'
script:
  - invoke tests --suite=$SUITE
env:
  global:
    - LD_LIBRARY_PATH=/usr/local/lib
    - LD_RUN_PATH=/usr/local/lib
  matrix:
    - NACL=libsodium SUITE=unit
    - "SUITE=pep8,lint"
matrix:
  exclude:
    - python: "2.6"
      env:
        - "SUITE=pep8,lint"
        - LD_LIBRARY_PATH=/usr/local/lib
        - LD_RUN_PATH=/usr/local/lib
    - python: "3.2"
      env:
        - "SUITE=pep8,lint"
        - LD_LIBRARY_PATH=/usr/local/lib
        - LD_RUN_PATH=/usr/local/lib
    - python: "3.3"
      env:
        - "SUITE=pep8,lint"
        - LD_LIBRARY_PATH=/usr/local/lib
        - LD_RUN_PATH=/usr/local/lib
    - python: "pypy"
      env:
        - "SUITE=pep8,lint"
        - LD_LIBRARY_PATH=/usr/local/lib
        - LD_RUN_PATH=/usr/local/lib

Use YAML array syntax to exclude the envvars
Use YAML array syntax to exclude the envvars
