-
Notifications
You must be signed in to change notification settings - Fork 57
/
.gitlab-ci.yml
61 lines (54 loc) · 1.94 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
include:
- project: rigetti/ci
file: pipelines/docker.gitlab-ci.yml
variables:
IMAGE: rigetti/qvm
.test:
stage: test
tags:
- github
- dockerd
only:
- branches
image:
name: docker:stable
test-qvm-lib:
extends: .test
script:
- docker build -t rigetti/qvm:${CI_COMMIT_SHORT_SHA} .
- docker run --rm --entrypoint=make rigetti/qvm:${CI_COMMIT_SHORT_SHA}
test-lib DISABLE_SHARED_MEMORY_QVM_TESTS=1 RIGETTI_LISP_LIBRARY_HOME=/src
- docker rmi rigetti/qvm:${CI_COMMIT_SHORT_SHA}
test-qvm-app:
extends: .test
script:
- docker build -t rigetti/qvm:${CI_COMMIT_SHORT_SHA} .
- docker run --rm --entrypoint=make rigetti/qvm:${CI_COMMIT_SHORT_SHA}
test-app RIGETTI_LISP_LIBRARY_HOME=/src
- docker rmi rigetti/qvm:${CI_COMMIT_SHORT_SHA}
# same as test-qvm-lib but builds off of quilc master, and we allow failure
test-qvm-lib-edge:
extends: .test
allow_failure: true
script:
- docker build -t rigetti/qvm:${CI_COMMIT_SHORT_SHA} --build-arg quilc_version=edge .
- docker run --rm --entrypoint=make rigetti/qvm:${CI_COMMIT_SHORT_SHA}
test-lib DISABLE_SHARED_MEMORY_QVM_TESTS=1 RIGETTI_LISP_LIBRARY_HOME=/src
- docker rmi rigetti/qvm:${CI_COMMIT_SHORT_SHA}
# same as test-qvm-app but builds off of quilc master, and we allow failure
test-qvm-app-edge:
extends: .test
allow_failure: true
script:
- docker build -t rigetti/qvm:${CI_COMMIT_SHORT_SHA} --build-arg quilc_version=edge .
- docker run --rm --entrypoint=make rigetti/qvm:${CI_COMMIT_SHORT_SHA}
test-app RIGETTI_LISP_LIBRARY_HOME=/src
- docker rmi rigetti/qvm:${CI_COMMIT_SHORT_SHA}
test-qvm-app-ng-edge:
extends: .test
allow_failure: true
script:
- docker build -t rigetti/qvm:${CI_COMMIT_SHORT_SHA} --build-arg quilc_version=edge .
- docker run --rm --entrypoint=make rigetti/qvm:${CI_COMMIT_SHORT_SHA}
test-app-ng RIGETTI_LISP_LIBRARY_HOME=/src
- docker rmi rigetti/qvm:${CI_COMMIT_SHORT_SHA}