language: python
cache: pip
sudo: false

matrix:
  fast_finish: true
  include:
    - python: pypy3
    - python: 3.7
      dist: xenial
      sudo: true
    - python: 3.6

# whitelist
# gh-pages is otherwise ignored by Travis CI
# Use a regex to whitelist gh-pages and all branches
branches:
  only:
    - gh-pages
    - /.*/

install:
 - pip install -U pip
 - pip install -Ur requirements.txt
 - wget https://raw.githubusercontent.com/hugovk/word-tools/master/word_tools.py
 - pip install -U black flake8

script:
 - nosetests
 - python wordnik_comment_scraper.py -h
 - python wordnik_list_downloader.py -h
 - python wordnik_list_scraper.py -h
 - flake8 --statistics --count .
 - black --check --diff .

language: python
cache: pip
sudo: false

matrix:
  fast_finish: true
  include:
    - python: 3.7
      dist: xenial
      sudo: true
    - python: 3.6

# whitelist
# gh-pages is otherwise ignored by Travis CI
# Use a regex to whitelist gh-pages and all branches
branches:
  only:
    - gh-pages
    - /.*/

install:
 - pip install -U pip
 - pip install -Ur requirements.txt
 - wget https://raw.githubusercontent.com/hugovk/word-tools/master/word_tools.py
 - pip install -U black flake8

script:
 - nosetests
 - python wordnik_comment_scraper.py -h
 - python wordnik_list_downloader.py -h
 - python wordnik_list_scraper.py -h
 - flake8 --statistics --count .
 - black --check --diff .

Drop PyPy3 as it's Python 3.5
Drop PyPy3 as it's Python 3.5
