1
0
mirror of https://github.com/Hutchy68/pivot.git synced 2025-10-29 00:07:36 +01:00

Setup CircleCI for testing

This commit is contained in:
Tom Hutchison
2020-12-11 09:18:53 -05:00
parent 13bf89300c
commit 8ec2264b04
4 changed files with 60 additions and 19 deletions

57
.circleci/config.yml Normal file
View File

@@ -0,0 +1,57 @@
version: 2.0
jobs:
"PHP 7.3":
docker:
-
auth:
password: $DOCKERHUB_PASSWORD
username: mydockerhub-user
image: "cimg/php:7.3"
steps:
- checkout
- run: "sudo composer install -n --prefer-dist"
- run: "sudo composer self-update"
- run: "sudo composer update --no-progress --prefer-dist --profile"
- run:
command: "composer test"
name: Test PHP7.3
"PHP 7.4":
docker:
-
auth:
password: $DOCKERHUB_PASSWORD
username: mydockerhub-user
image: "cimg/php:7.4"
steps:
- checkout
- run: "sudo composer install -n --prefer-dist"
- run: "sudo composer self-update"
- run: "sudo composer update --no-progress --prefer-dist --profile"
- run:
command: "composer test"
name: Test PHP7.4
"PHP 8.0":
docker:
- auth:
password: $DOCKERHUB_PASSWORD
username: mydockerhub-user
image: "cimg/php:8.0"
steps:
- checkout
- run: "sudo composer install -n --prefer-dist"
- run: "sudo composer self-update"
- run: "sudo composer update --no-progress --prefer-dist --profile"
- run:
command: "composer test"
name: Test PHP8.0
workflows:
version: 2
build:
jobs:
- "PHP 7.3"
- "PHP 7.4"
- "PHP 8.0"