summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 0afb5cc20aff7c42da34d1167ab437d45fa3c0b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
language: python
python:
  - "3.6"
  - "3.7"
  - "3.8"

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

install:
  - pip install -r requirements-dev.txt
  - pip install -e .
  - sudo rm -f /etc/mysql/conf.d/performance-schema.cnf
  - sudo service mysql restart

script:
  - ./setup.py test --pytest-args="--cov-report= --cov=mycli"
  - coverage combine
  - coverage report
  - ./setup.py lint --branch=$TRAVIS_BRANCH

after_success:
  - codecov

notifications:
  webhooks:
    urls:
      - YOUR_WEBHOOK_URL
    on_success: change  # options: [always|never|change] default: always
    on_failure: always  # options: [always|never|change] default: always