Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

.travis.yml 1.3 KB

You have to be logged in to leave a comment. Sign In
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
34
35
36
37
38
39
  1. dist: bionic # ubuntu 18.04
  2. language: python
  3. python:
  4. - "3.5"
  5. - "3.6"
  6. - "3.7"
  7. env: CUDA=10.1.105-1 CUDA_SHORT=10.1 UBUNTU_VERSION=ubuntu1804
  8. # Ref to CUDA installation in Travis: https://github.com/jeremad/cuda-travis
  9. before_install:
  10. - INSTALLER=cuda-repo-${UBUNTU_VERSION}_${CUDA}_amd64.deb
  11. - wget http://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/${INSTALLER}
  12. - sudo dpkg -i ${INSTALLER}
  13. - wget https://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/7fa2af80.pub
  14. - sudo apt-key add 7fa2af80.pub
  15. - sudo apt update -qq
  16. - sudo apt install -y cuda-${CUDA_SHORT/./-} cuda-cufft-dev-${CUDA_SHORT/./-}
  17. - sudo apt clean
  18. - CUDA_HOME=/usr/local/cuda-${CUDA_SHORT}
  19. - LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${CUDA_HOME}/include:${LD_LIBRARY_PATH}
  20. - PATH=${CUDA_HOME}/bin:${PATH}
  21. install:
  22. - pip install Cython torch==1.2
  23. - pip install -r requirements.txt
  24. - pip install -r tests/requirements.txt
  25. script:
  26. - flake8 .
  27. - isort -rc --check-only --diff mmdet/ tools/ tests/
  28. - yapf -r -d --style .style.yapf mmdet/ tools/ tests/
  29. - python setup.py check -m -s
  30. - python setup.py build_ext --inplace
  31. - coverage run --source mmdet -m py.test -v --xdoctest-modules tests mmdet
  32. after_success:
  33. - coverage report
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...