This repository was archived by the owner on Mar 28, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
171 lines (155 loc) · 3.19 KB
/
.gitlab-ci.yml
File metadata and controls
171 lines (155 loc) · 3.19 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
image: registry.gitlab.com/termoshtt/accel/ubuntu18.04-cuda10.2-nightly2020-05-01:master
variables:
AWS_DEFAULT_REGION: ap-northeast-1
BUCKET_NAME: accel-gitlab-ci
stages:
- docker
- test
- bench
- package
- deploy
test:cargo-clippy:
stage: test
script:
- cargo clippy
test:cargo-fmt:
stage: test
script:
- cargo fmt -- --check
.with_gpu:
before_script:
- nvidia-smi
tags:
- gpu
only:
- master
- tags
- /^gpu-.*/
test:accel:
extends: .with_gpu
stage: test
script:
- cargo test
test:ignored:
extends: .with_gpu
stage: test
script:
- cd accel
- cargo test -- --ignored
allow_failure: true
bench:
extends: .with_gpu
stage: bench
script:
- rm -rf accel/target/criterion
- cargo bench
- mv accel/target/criterion public/benchmark
artifacts:
paths:
- public/benchmark
only:
variables:
- $CI_COMMIT_MESSAGE =~ /\[bench\]/
- $CI_RUN_BENCHMARK
changelog:
image: debian
stage: test
before_script:
- apt update
- apt install -y git
script:
- test -n "$(git diff origin/master CHANGELOG.md)"
except:
- master
package:
stage: package
script:
# Document of accel, accel-derive
- cargo doc --no-deps --document-private-items
- mv target/doc public/accel
# Document of accel-core
- cd accel-core
- cargo doc
- mv ./target/nvptx64-nvidia-cuda/doc ../public/accel-core
- cd -
artifacts:
paths:
- public
pages:
stage: deploy
dependencies:
- package
script:
- find public
artifacts:
paths:
- public
only:
- master
.s3:
image: python
stage: deploy
dependencies:
- package
before_script:
- pip install awscli
only:
- master
- tags
- /^gpu-.*/
deploy_s3:
extends: .s3
script:
- aws s3 cp public s3://${BUCKET_NAME}/${CI_COMMIT_REF_SLUG} --recursive --acl public-read
environment:
name: ${CI_COMMIT_REF_SLUG}
url: https://${BUCKET_NAME}.s3-${AWS_DEFAULT_REGION}.amazonaws.com/${CI_COMMIT_REF_SLUG}/index.html
on_stop: clean_s3
clean_s3:
extends: .s3
script:
- aws s3 rm s3://${BUCKET_NAME}/${CI_COMMIT_REF_SLUG} --recursive
environment:
name: ${CI_COMMIT_REF_SLUG}
action: stop
when: manual
.build:
image: docker:stable
stage: docker
services:
- docker:dind
before_script:
- apk add make
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
script:
- make -C docker ${CI_JOB_NAME}
only:
refs:
- master
- tags
changes:
- docker/*
centos7-cuda10.0-nightly2020-01-02:
extends: .build
centos7-cuda10.1-nightly2020-01-02:
extends: .build
centos7-cuda10.2-nightly2020-01-02:
extends: .build
ubuntu18.04-cuda10.0-nightly2020-01-02:
extends: .build
ubuntu18.04-cuda10.1-nightly2020-01-02:
extends: .build
ubuntu18.04-cuda10.2-nightly2020-01-02:
extends: .build
centos7-cuda10.0-nightly2020-05-01:
extends: .build
centos7-cuda10.1-nightly2020-05-01:
extends: .build
centos7-cuda10.2-nightly2020-05-01:
extends: .build
ubuntu18.04-cuda10.0-nightly2020-05-01:
extends: .build
ubuntu18.04-cuda10.1-nightly2020-05-01:
extends: .build
ubuntu18.04-cuda10.2-nightly2020-05-01:
extends: .build