language: python

matrix:
  include:
    - python: 2.7
      env: TOXENV=py27,coverage
    - python: 2.7
      env: TOXENV=flake8,pylint LINT_ONLY=1
    - python: 3.6
      env: TOXENV=py36,coverage
    - python: 3.6
      env: TOXENV=flake8,pylint LINT_ONLY=1

branches:
  only:
  - master
  - /^v\d+\.\d+\.\d+/

before_install:
- if [ -z "$LINT_ONLY" ]; then sudo add-apt-repository --yes ppa:fontforge/fontforge; fi
- if [ -z "$LINT_ONLY" ]; then sudo apt-get update -qq; fi
- if [ -z "$LINT_ONLY" ]; then sudo apt-get -y install python-fontforge ttfautohint; fi
- if [ -z "$LINT_ONLY" ]; then sudo apt-get install mono-runtime libmono-system-windows-forms4.0-cil; fi
- pip install --upgrade pip

install:
- export LD_LIBRARY_PATH=/usr/local/lib
- export PATH=$PATH:prebuilt/:prebuilt/fval/
- export LD_PRELOAD=prebuilt/custom_freetype/lib/libfreetype.so
- pip install tox

script:
- tox

language: python

matrix:
  include:
    - python: 2.7
      env: TOXENV=py27,coverage
    - python: 2.7
      env: TOXENV=flake8,pylint LINT_ONLY=1
    - python: 3.6
      env: TOXENV=py36,coverage
    - python: 3.6
      env: TOXENV=flake8,pylint LINT_ONLY=1

before_install:
- if [ -z "$LINT_ONLY" ]; then sudo add-apt-repository --yes ppa:fontforge/fontforge; fi
- if [ -z "$LINT_ONLY" ]; then sudo apt-get update -qq; fi
- if [ -z "$LINT_ONLY" ]; then sudo apt-get -y install python-fontforge ttfautohint; fi
- if [ -z "$LINT_ONLY" ]; then sudo apt-get install mono-runtime libmono-system-windows-forms4.0-cil; fi
- pip install --upgrade pip

install:
- export LD_LIBRARY_PATH=/usr/local/lib
- export PATH=$PATH:prebuilt/:prebuilt/fval/
- export LD_PRELOAD=prebuilt/custom_freetype/lib/libfreetype.so
- pip install tox

script:
- tox

Remove branch restriction to test feature branches
Remove branch restriction to test feature branches
