Skip to content

Commit ea42b78

Browse files
authored
Setup Updated CircleCI Builds (#18)
* Setup Updated CircleCi Builds Support CircleCI IP Ranges Setup a Build Highest/Lowest Dependencies process Signed-off-by: Justin Yost <justin.yost@wirecutter.com> * Improvements based upon feedback Signed-off-by: Justin Yost <justin.yost@wirecutter.com> --------- Signed-off-by: Justin Yost <justin.yost@wirecutter.com>
1 parent a5ada3d commit ea42b78

File tree

1 file changed

+38
-6
lines changed

1 file changed

+38
-6
lines changed

.circleci/config.yml

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,51 @@
1-
# PHP CircleCI 2.0 configuration file
1+
# CircleCI Configuration file for test builds for PA-API Package.
22
#
3-
# Check https://circleci.com/docs/2.0/language-php/ for more details
3+
# Check https://circleci.com/docs/introduction-to-yaml-configurations/
44
#
5-
version: 2
5+
---
6+
version: 2.1
67
jobs:
7-
build:
8+
test-lowest:
9+
# Use the defined CircleCI IP Ranges.
10+
circleci_ip_ranges: true
11+
12+
# Docker Container/PHP Version to Use.
813
docker:
9-
# Specify the version you desire here
1014
- image: cimg/php:8.0
1115

16+
resource_class: small
17+
1218
steps:
1319
- checkout
1420

15-
- run: composer install -n --prefer-dist
21+
- run: composer install --prefer-dist --no-interaction --no-scripts
1622

1723
- run: composer phpcs
1824

1925
- run: composer test
26+
27+
test-highest:
28+
# Use the defined CircleCI IP Ranges.
29+
circleci_ip_ranges: true
30+
31+
# Docker Container/PHP Version to Use.
32+
docker:
33+
- image: cimg/php:8.4
34+
35+
resource_class: small
36+
37+
steps:
38+
- checkout
39+
40+
- run: composer install --prefer-dist --no-interaction --no-scripts
41+
42+
- run: composer phpcs
43+
44+
- run: composer test
45+
46+
workflows:
47+
build:
48+
jobs:
49+
# Build and Test the code.
50+
- test-highest
51+
- test-lowest

0 commit comments

Comments
 (0)