-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
59 lines (53 loc) · 1.59 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
include:
- template: Code-Quality.gitlab-ci.yml
stages:
- test
- pack
- install
code_quality_html:
extends: code_quality
variables:
REPORT_FORMAT: html
artifacts:
paths: [gl-code-quality-report.html]
test:python3:
stage: test
image: cupy/cupy:latest
script:
- export QT_QPA_PLATFORM="offscreen" && export DEBIAN_FRONTEND=noninteractive
- apt-get update -qq && apt-get upgrade -y
- apt-get install -y python3 python3-pip libglib2.0-0 ffmpeg libsm6 libxext6 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0
- /usr/bin/python3 -m pip install --upgrade pip
- pip3 install -r requirements.txt
# Online preview of tests that did run successfully
- pytest tests --junitxml=report.xml
artifacts:
when: always
reports:
junit: report.xml
tags:
- docker
- gpu
install:python3:
stage: install
image: cupy/cupy:latest
script:
- apt-get update -qq && apt-get upgrade -y
- apt-get install -y python3 python3-pip
- /usr/bin/python3 -m pip install --upgrade pip
- pip3 install .
tags:
- docker
- gpu
pack:python3:
stage: pack
image: cupy/cupy:latest
script:
- apt-get update -qq && apt-get upgrade -y
- apt-get install -y python3 python3-pip
- /usr/bin/python3 -m pip install --upgrade pip
- pip3 install pep517
- python3 -m pep517.build --source --binary --out-dir dist/ .
tags:
- docker
- gpu