sudo: false
language: python
matrix:
    include:
      - python: "2.7"
      - python: "3.3"
      - python: "3.4"
      - python: "3.5"
      - python: "nightly"
      - python: "pypy"
      - python: "pypy3"
      - os: osx
        language: generic
    allow_failures:
      - python: "nightly"
addons:
  apt:
    packages:
    - language-pack-tr
before_install:
  # Test using the Apple-provided Python since it'll be most likely to fail
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo easy_install pip; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo pip install nose mock coverage; fi
install:
  - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then pip install coveralls; fi
script: nosetests
after_success:
  - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then coveralls; fi

dist: trusty
sudo: false
cache: pip
language: python
matrix:
    include:
      - python: "2.7"
      - python: "3.3"
      - python: "3.4"
      - python: "3.5"
      - python: "nightly"
      - python: "pypy"
      - python: "pypy3"
      - os: osx
        language: generic
    allow_failures:
      - python: "nightly"
addons:
  apt:
    packages:
    - language-pack-tr
before_install:
  # Test using the Apple-provided Python since it'll be most likely to fail
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo easy_install pip; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo pip install nose mock coverage; fi
install:
  - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then pip install coveralls; fi
script: nosetests
after_success:
  - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then coveralls; fi

Switch Travis-CI runs to Ubuntu Trusty to try to fix locale.setlocale()
Switch Travis-CI runs to Ubuntu Trusty to try to fix locale.setlocale()

(It works on the Trusty (14.04 LTS) I develop on, so I'm assuming the
error caused by 'tr_TR.utf8' within Python stdlib is due to an old
Python version.)
