Skip to content
Snippets Groups Projects
  • Jason Hu's avatar
    8ef2cfa3
    Try to fix coveralls unstable result (#15800) · 8ef2cfa3
    Jason Hu authored
    * Create one tox env for code coverage report
    
    pytest-cov generated report in project root folder, not tox env folder.
    
    * Add cov tox env to travis
    
    * Coveralls seems expecting all build jobs upload
    
    * Only upload coverage after cov env success
    8ef2cfa3
    History
    Try to fix coveralls unstable result (#15800)
    Jason Hu authored
    * Create one tox env for code coverage report
    
    pytest-cov generated report in project root folder, not tox env folder.
    
    * Add cov tox env to travis
    
    * Coveralls seems expecting all build jobs upload
    
    * Only upload coverage after cov env success
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
.travis.yml 1023 B
sudo: false
addons:
  apt:
    packages:
      - libudev-dev
matrix:
  fast_finish: true
  include:
    - python: "3.5.3"
      env: TOXENV=lint
    - python: "3.5.3"
      env: TOXENV=pylint
    - python: "3.5.3"
      env: TOXENV=typing
    - python: "3.5.3"
      env: TOXENV=cov
      after_success: coveralls
    - python: "3.6"
      env: TOXENV=py36
    - python: "3.7"
      env: TOXENV=py37
      dist: xenial
    - python: "3.8-dev"
      env: TOXENV=py38
      dist: xenial
      if: branch = dev AND type = push
  allow_failures:
    - python: "3.8-dev"
      env: TOXENV=py38
      dist: xenial

cache:
  directories:
    - $HOME/.cache/pip
install: pip install -U tox coveralls
language: python
script: travis_wait 30 tox --develop
services:
  - docker
before_deploy:
  - docker pull lokalise/lokalise-cli@sha256:2198814ebddfda56ee041a4b427521757dd57f75415ea9693696a64c550cef21
deploy:
  skip_cleanup: true
  provider: script
  script: script/travis_deploy
  on:
    branch: dev
    condition: $TOXENV = lint