# https://travis-ci.org/mre/kafka-influxdb
sudo: false
os:
  - linux
env:
  global:
    - NEWEST_PYTHON=3.5
sudo: required
language: python
python:
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
  - "3.6-dev"
  - "pypy-5.4"
  - "nightly"
matrix:
  allow-failures:
    - python: "3.6-dev"
    - python: "nightly"
  fast_finish: true
before_install:
  - pip install --upgrade pip setuptools
install:
  # Install librdkafka, which is needed for the high-performance confluent Kafka consumer.
  # PyPy has problems with librdkafka: "undefined symbol: PyUnicode_FromFormat". Skip for this platform.
  - if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then git clone https://github.com/edenhill/librdkafka.git && cd librdkafka && ./configure --prefix=/usr && make && sudo make install && cd ../; fi
  - "python setup.py install"
script:
  - "python setup.py test"
after_success:
  - if [[ $TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON ]]; then coverage run --source=kafka_influxdb setup.py test && coveralls; fi

# https://travis-ci.org/mre/kafka-influxdb
sudo: false
os:
  - linux
env:
  global:
    - NEWEST_PYTHON=3.5
sudo: required
language: python
python:
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
  - "3.6-dev"
  - "pypy-5.4"
  - "nightly"
matrix:
  allow-failures:
    - python: "3.6-dev"
    - python: "nightly"
  fast_finish: true
before_install:
  - pip install --upgrade pip setuptools
install:
  # Install librdkafka, which is needed for the high-performance confluent Kafka consumer.
  # PyPy has problems with librdkafka: "undefined symbol: PyUnicode_FromFormat". Skip for this platform.
  - if [[ $TRAVIS_PYTHON_VERSION != pypy* ]]; then git clone https://github.com/edenhill/librdkafka.git && cd librdkafka && ./configure --prefix=/usr && make && sudo make install && cd ../; fi
  - "python setup.py install"
script:
  - "python setup.py test"
after_success:
  - if [[ $TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON ]]; then bash <(curl -s https://codecov.io/bash); fi

Switch from coveralls to codecov
Switch from coveralls to codecov
