.travis.yml 1.68 KB
Newer Older
1
dist: bionic
Kai Chen's avatar
Kai Chen committed
2
3
4
5
6
sudo: required
language: python

before_install:
  - sudo apt-get update
7
  - sudo apt-get install -y ffmpeg libturbojpeg
Joanna's avatar
Joanna committed
8
  - pip install -U git+git://github.com/lilohuang/PyTurboJPEG.git
Kai Chen's avatar
Kai Chen committed
9
10

install:
Kai Chen's avatar
Kai Chen committed
11
  - pip install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
12
  - rm -rf .eggs && pip install -e .
Kai Chen's avatar
Kai Chen committed
13
14
15
16
17
18
19
20
21
22

cache:
  pip: true

env:
  global:
    - COLUMNS=80

python:
  - "3.6"
Kai Chen's avatar
Kai Chen committed
23
  - "3.7"
24
  - "3.8"
Kai Chen's avatar
Kai Chen committed
25

Kai Chen's avatar
Kai Chen committed
26
before_script:
27
  - pip install codecov flake8 yapf isort lmdb
28
29
  - flake8 .
  - isort -rc --check-only --diff mmcv/ tests/ examples/
Kai Chen's avatar
Kai Chen committed
30
  - yapf -r -d mmcv/ tests/ examples/
Kai Chen's avatar
Kai Chen committed
31

Kai Chen's avatar
Kai Chen committed
32
script: coverage run --branch --source=mmcv -m pytest tests/
Kai Chen's avatar
Kai Chen committed
33

Kai Chen's avatar
Kai Chen committed
34
35
after_success:
  - coverage report -m
36
  - if [[ $TRAVIS_PYTHON_VERSION == "3.7" ]]; then codecov; fi
Kai Chen's avatar
Kai Chen committed
37
38
39
40
41
42
43
44
45

deploy:
  provider: pypi
  user: kchen
  password:
    secure: "roexTpCf6tzmOY52XjXiFu31IEa+WPT/ETmDoOJgurN0fw2Dzh5YZfeh80gMF7CfaZdWNJB7vJhPO242wnkYkbOkEM/MITnnDVM3dBav9LpOslqP8UhmIMTk9huK7uI/DYAOmoDuZ7b2xoe7EolpGY4Ea+OO1absM2x7imKY1F2FPfLYOIlJcqfWYtmuxNJjSCUkJaLUDllED6n6DS2+/hBWZUz9WYlmgmQDff2lQjN9vy442zlY8W83kqtzNom7FvsP2aksHz2DRSwulxzRmQpVcvIk6R/D1Kdtt018J+RCadIg7DEztcmVewYuIe4I/4mqh/CzDu636jrxN6KaYnbsxTuT7wPAh4hy12wr9e4J5sowCIgw/DawYooJQ+8XndUn8MOxIq5ZGWrVeinbYeW6xbhxIPf9PVYTfQ3P4cQDrPvotCYJrzKxZUVexyO9CSaqNam9gU8IrR+yrJUdfdyzf/AHeHKLtHufSfVfnVUbB27590jpYgUT9YdoVU6A6tN66RhNOjD0UFEJxzSOgsMaFSNbmDlZZa0SsJizRqUJ4K7XXAlomTxeUkp9HTXdIu5DGwNl0oS/QdrWJvWN4I/6BhFX3gd1f4XupgHHwvhLP1PMeUz+ahlClUVlUqGvQcfxLI7+Pcj+hmETWq5tpZOqPATg8ZwYt4CwwOnzW5c="
  on:
    branch: master
    tags: true
46
    python: "3.7"
Kai Chen's avatar
Kai Chen committed
47
    distributions: sdist  # bdist_wheel is not supported due to the cpp extension
Kai Chen's avatar
Kai Chen committed
48
    skip_cleanup: true
49
    skip_upload_docs: true