Skip to content

Commit e3237a7

Browse files
authored
Update config.yml (#51)
1 parent db70976 commit e3237a7

1 file changed

Lines changed: 68 additions & 13 deletions

File tree

.circleci/config.yml

Lines changed: 68 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44

55
version: 2.1
66

7-
commands:
8-
prepare:
7+
8+
jobs:
9+
examples-regtest:
10+
docker:
11+
- image: &img public.ecr.aws/y7e8i2v6/cvt-image:2023.10.25-2197-cf04537
12+
resource_class: small
13+
working_directory: ~/repo
914
steps:
1015
- add_ssh_keys:
1116
fingerprints:
@@ -14,8 +19,8 @@ commands:
1419
- checkout
1520

1621
- run:
17-
name: Get the current beta
18-
command: pip3.11 install certora-cli-beta
22+
name: Get the current version
23+
command: pip3.11 install certora-cli
1924

2025
- run:
2126
name: Get ConfRunnerInfra
@@ -28,18 +33,49 @@ commands:
2833
command: |
2934
cd ~/
3035
git clone git@github.com:Certora/ExamplesRegtest.git
31-
cd ExamplesRegtest
32-
git switch cli-beta
3336
34-
35-
jobs:
36-
examples-regtest:
37+
- run:
38+
name: Run Reg Test
39+
command: |
40+
cd ~/ExamplesRegtest
41+
python3.11 RunNightlyTest.py --examples_repo_path ../repo
42+
43+
- store_artifacts:
44+
path: Report.csv
45+
destination: reports
46+
47+
- store_test_results:
48+
path: ~/repo
49+
50+
examples-regtest-beta:
3751
docker:
3852
- image: &img public.ecr.aws/y7e8i2v6/cvt-image:2023.10.25-2197-cf04537
3953
resource_class: small
4054
working_directory: ~/repo
4155
steps:
42-
- prepare
56+
- add_ssh_keys:
57+
fingerprints:
58+
- "a7:d9:8e:37:bd:7c:ef:3a:a6:9b:dc:4f:29:97:f9:6f"
59+
60+
- checkout
61+
62+
- run:
63+
name: Get the current beta
64+
command: pip3.11 install certora-cli-beta
65+
66+
- run:
67+
name: Get ConfRunnerInfra
68+
command: |
69+
ssh-keyscan github.com >> ~/.ssh/known_hosts
70+
pip3.11 install git+ssh://git@github.com/Certora/ConfRunnerInfra.git
71+
72+
- run:
73+
name: Get ExamplesRegtest
74+
command: |
75+
cd ~/
76+
git clone git@github.com:Certora/ExamplesRegtest.git
77+
cd ExamplesRegtest
78+
git switch cli-beta
4379
4480
- run:
4581
name: Run Reg Test
@@ -59,24 +95,43 @@ parameters:
5995
run_regtest:
6096
default: false
6197
type: boolean
98+
99+
run_regtest_beta:
100+
default: false
101+
type: boolean
62102

63103

64104
workflows:
65105
version: 2
66106
# Nightly builds will run every day at 4am GMT
67-
examples-nightly-beta:
107+
examples-nightly:
68108
triggers:
69109
- schedule:
70110
cron: "0 4 * * *"
71111
filters:
72112
branches:
73113
only:
74-
- cli-beta
114+
- master
75115
jobs:
76116
- examples-regtest
77117

78-
examples-manual-beta:
118+
examples-manual:
79119
when: << pipeline.parameters.run_regtest >>
80120
jobs:
81121
- examples-regtest
82122

123+
examples-nightly-beta:
124+
triggers:
125+
- schedule:
126+
cron: "0 4 * * *"
127+
filters:
128+
branches:
129+
only:
130+
- cli-beta
131+
jobs:
132+
- examples-regtest-beta
133+
134+
examples-manual-beta:
135+
when: << pipeline.parameters.run_regtest_beta >>
136+
jobs:
137+
- examples-regtest-beta

0 commit comments

Comments
 (0)