File tree Expand file tree Collapse file tree 3 files changed +247
-189
lines changed
src/basilisp/lang/compiler Expand file tree Collapse file tree 3 files changed +247
-189
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,39 @@ commands:
75
75
- store_test_results :
76
76
path : junit
77
77
78
+ run_pypy_tests :
79
+ description : " Install Tox and run tests."
80
+ parameters :
81
+ python_version :
82
+ description : " Required. Python version as `major.minor`."
83
+ type : string
84
+ steps :
85
+ - checkout
86
+ - restore_cache :
87
+ key : pypy-deps2-{{ checksum "tox.ini" }}-{{ checksum "Pipfile.lock" }}
88
+ - run :
89
+ name : Install tox
90
+ command : |
91
+ pip install -U pip
92
+ pip install tox
93
+ - run :
94
+ name : Run Tests
95
+ command : |
96
+ CCI_NODE_TESTS=$(circleci tests glob "tests/**/*_test.*py" "tests/**/test_*.*py" | circleci tests split)
97
+ printf "Test files:\n"
98
+ echo "$CCI_NODE_TESTS"
99
+ printf "\n"
100
+ tox -e pypy3 -- $CCI_NODE_TESTS
101
+ no_output_timeout : 30m
102
+ - save_cache :
103
+ key : pypy-deps2-{{ checksum "tox.ini" }}-{{ checksum "Pipfile.lock" }}
104
+ paths :
105
+ - " /root/project/.tox"
106
+ - " /usr/local/bin"
107
+ - " /usr/local/lib/python<< parameters.python_version >>/site-packages"
108
+ - store_test_results :
109
+ path : junit
110
+
78
111
jobs :
79
112
test-cpython-36 :
80
113
docker :
@@ -141,35 +174,21 @@ jobs:
141
174
python_version : " 3.8"
142
175
cache_key_prefix : report-coverage-deps
143
176
144
- test-pypy :
177
+ test-pypy-36 :
145
178
docker :
146
- - image : pypy:3.6-7- slim-buster
147
- parallelism : 3
179
+ - image : pypy:3.6-slim-buster
180
+ parallelism : 4
148
181
steps :
149
- - checkout
150
- - restore_cache :
151
- key : pypy-deps2-{{ checksum "tox.ini" }}-{{ checksum "Pipfile.lock" }}
152
- - run :
153
- name : Install tox
154
- command : |
155
- pip install -U pip
156
- pip install tox
157
- - run :
158
- name : Run Tests
159
- command : |
160
- CCI_NODE_TESTS=$(circleci tests glob "tests/**/*_test.*py" "tests/**/test_*.*py" | circleci tests split --split-by=timings)
161
- printf "Test files:\n"
162
- echo "$CCI_NODE_TESTS"
163
- printf "\n"
164
- tox -e pypy3 -- $CCI_NODE_TESTS
165
- - save_cache :
166
- key : pypy-deps2-{{ checksum "tox.ini" }}-{{ checksum "Pipfile.lock" }}
167
- paths :
168
- - " /root/project/.tox"
169
- - " /usr/local/bin"
170
- - " /usr/local/lib/python3.6/site-packages"
171
- - store_test_results :
172
- path : junit
182
+ - run_pypy_tests :
183
+ python_version : " 3.6"
184
+
185
+ test-pypy-37 :
186
+ docker :
187
+ - image : pypy:3.7-slim-buster
188
+ parallelism : 4
189
+ steps :
190
+ - run_pypy_tests :
191
+ python_version : " 3.7"
173
192
174
193
workflows :
175
194
version : 2
@@ -179,7 +198,8 @@ workflows:
179
198
- test-cpython-37
180
199
- test-cpython-38
181
200
- test-cpython-39
182
- - test-pypy
201
+ - test-pypy-36
202
+ - test-pypy-37
183
203
- report-coverage :
184
204
requires :
185
205
- test-cpython-36
You can’t perform that action at this time.
0 commit comments