-
Notifications
You must be signed in to change notification settings - Fork 272
/
Copy path.gitlab-ci.yml
61 lines (55 loc) · 1.66 KB
/
.gitlab-ci.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
variables:
PYTORCH_IMAGE: registry.sensetime.com/eig-research/pytorch:1.3.1-cuda10.1-cudnn7-devel
stages:
- linting
- test
- deploy
before_script:
- echo $PATH
- gcc --version
- nvcc --version
- python --version
- pip --version
- python -c "import torch; print(torch.__version__)"
linting:
image: $PYTORCH_IMAGE
stage: linting
script:
- pip install flake8==3.7.9 yapf isort
- flake8 .
- isort -rc --check-only --diff mmdet3d/ tools/ tests/
- yapf -r -d mmdet3d/ tools/ tests/ configs/
.test_template: &test_template_def
stage: test
script:
- echo "Start building..."
- pip install -q "git+https://github.com/open-mmlab/cocoapi.git#subdirectory=pycocotools"
- pip install -q git+https://github.com/open-mmlab/mmcv.git
- pip install -q git+https://github.com/open-mmlab/mmdetection.git
- python -c "import mmdet; print(mmdet.__version__)"
- pip install -e .[all]
- python -c "import mmdet3d; print(mmdet3d.__version__)"
- echo "Start testing..."
- coverage run --branch --source mmdet3d -m pytest tests/
- coverage report -m
- interrogate -v --ignore-init-method --ignore-module --ignore-nested-functions --exclude mmdet3d/ops --ignore-regex "__repr__" --fail-under 44 mmdet3d
test:pytorch1.3-cuda10:
image: $PYTORCH_IMAGE
<<: *test_template_def
pages:
image: $PYTORCH_IMAGE
stage: deploy
script:
- pip install numba==0.48.0
- pip install sphinx sphinx_rtd_theme recommonmark sphinx_markdown_tables
- cd docs
- make html
- cd ..
- mkdir -p ./public
- cp -r docs/_build/html/* ./public
- ls ./public
artifacts:
paths:
- public
only:
- master