language: python

sudo: required
dist: trusty

matrix:
  include:
    - env: TOX_ENV=py36
      python: 3.6
    - env: TOX_ENV=py37
      python: 3.7

cache:
  directories:
    - $HOME/.cache/pip

before_install:
  - sudo apt-get install -y libffi-dev libssl-dev shellcheck
  - nvm install 8.1.1
  - nvm use 8.1.1

install:
  - sudo curl -sSL -o /usr/bin/hadolint https://github.com/hadolint/hadolint/releases/download/v1.15.0/hadolint-Linux-x86_64 && sudo chmod a+x /usr/bin/hadolint
  - npm install -g eslint csslint sass-lint jsonlint stylelint eslint-plugin-react eslint-plugin-react-native babel-eslint
  - pip install -U tox

script: tox -e $TOX_ENV

after_success:
  - pip install codecov
  - codecov
  - |
    if [[ "${TRAVIS_TAG:-}" != "" && "$TOX_ENV" == "py36" ]]; then
      python3.6 setup.py sdist bdist_wheel;
      python3.6 -m pip install twine;
      python3.6 -m twine upload --skip-existing dist/*;
    fi

language: python
sudo: required
dist: xenial

matrix:
  include:
    - env: TOX_ENV=py36
      python: 3.6
    - env: TOX_ENV=py37
      python: 3.7

cache:
  directories:
    - $HOME/.cache/pip

before_install:
  - sudo apt-get install -y libffi-dev libssl-dev shellcheck
  - nvm install 8.1.1
  - nvm use 8.1.1

install:
  - sudo curl -sSL -o /usr/bin/hadolint https://github.com/hadolint/hadolint/releases/download/v1.15.0/hadolint-Linux-x86_64 && sudo chmod a+x /usr/bin/hadolint
  - npm install -g eslint csslint sass-lint jsonlint stylelint eslint-plugin-react eslint-plugin-react-native babel-eslint
  - pip install -U tox

script: tox -e $TOX_ENV

after_success:
  - pip install codecov
  - codecov
  - |
    if [[ "${TRAVIS_TAG:-}" != "" && "$TOX_ENV" == "py36" ]]; then
      python3.6 setup.py sdist bdist_wheel;
      python3.6 -m pip install twine;
      python3.6 -m twine upload --skip-existing dist/*;
    fi

Use Ubuntu Xential on Travis CI
Use Ubuntu Xential on Travis CI
