-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
112 lines (103 loc) · 3.36 KB
/
config.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
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
version: 2.1
orbs:
ruby: circleci/[email protected]
workflows:
run-tests:
jobs:
- rspec: # <-- this is a job using the captain CLI
context: rwx # <-- this is the context that contains the `RWX_ACCESS_TOKEN` environment variable
- rspec-with-retries:
context: rwx
- rspec-with-partitioning:
context: rwx
- rspec-with-partitioning-retries:
context: rwx
jobs:
rspec:
docker:
- image: cimg/ruby:3.1.2
steps:
- checkout
- ruby/install-deps
- run:
name: Download Captain
command: |
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" && \
sudo install $tmp /usr/local/bin && \
rm $tmp && \
captain --version
- run:
name: run tests
command: captain run captain-examples-rspec
- store_test_results:
path: tmp/junit.xml
rspec-with-retries:
docker:
- image: cimg/ruby:3.1.2
steps:
- checkout
- ruby/install-deps
- run:
name: Download Captain
command: |
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" && \
sudo install $tmp /usr/local/bin && \
rm $tmp && \
captain --version
- run:
name: run tests with retries
command: captain run captain-examples-rspec-retries
- store_test_results:
path: tmp/junit.xml
rspec-with-partitioning:
parallelism: 2
docker:
- image: cimg/ruby:3.1.2
steps:
- checkout
- ruby/install-deps
- run:
name: Download Captain
command: |
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" && \
sudo install $tmp /usr/local/bin && \
rm $tmp && \
captain --version
- run:
name: run tests with partitioning
command: |
captain run captain-examples-rspec-partition
- store_test_results:
path: tmp/junit.xml
rspec-with-partitioning-retries:
parallelism: 2
docker:
- image: cimg/ruby:3.1.2
steps:
- checkout
- ruby/install-deps
- run:
name: Download Captain
command: |
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" && \
sudo install $tmp /usr/local/bin && \
rm $tmp && \
captain --version
- run:
name: run tests with partitioning and retries
command: |
captain run captain-examples-rspec-partition-retries
- store_test_results:
path: tmp/junit.xml