-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
56 lines (50 loc) · 1.13 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
image: ruby:3.1.2
before_script:
- ruby -v
- bundle install --jobs $(nproc)
# download captain
- arch=x86_64 # Supported values are x86_64 or aarch64
- os=linux # Supported values are linux or darwin
- tmp="$(mktemp -d)/captain"
- curl -o $tmp -fsSL "https://releases.captain.build/v1/$os/$arch/captain"
- install $tmp /usr/local/bin
- rm $tmp
- captain --version
rspec:
script:
- captain run captain-examples-rspec
artifacts:
when: always
paths:
- tmp/junit.xml
reports:
junit: tmp/junit.xml
rspec-with-retries:
script:
- captain run captain-examples-rspec-retries
artifacts:
when: always
paths:
- tmp/junit.xml
reports:
junit: tmp/junit.xml
rspec-with-partitioning:
parallel: 2
script:
- captain run captain-examples-rspec-partition
artifacts:
when: always
paths:
- tmp/junit.xml
reports:
junit: tmp/junit.xml
rspec-with-partitioning-and-retries:
parallel: 2
script:
- captain run captain-examples-rspec-partition-retries
artifacts:
when: always
paths:
- tmp/junit.xml
reports:
junit: tmp/junit.xml