Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Php 8 upgrade/fix tests #19

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# PHP CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-php/ for more details
#
version: 2.1

commands:
build:
steps:
- checkout
- run: sudo apt update
- run:
name: Install MySQL CLI
command: |
sudo apt-get install default-mysql-client
- restore_cache:
keys:
- v2-dependencies-{{ checksum "composer.json" }}
- v2-dependencies-
- run:
name: Composer Install
command: |
composer install -n --prefer-dist --no-scripts
- save_cache:
key: v2-dependencies-{{ checksum "composer.json" }}
paths:
- ./vendor
- run:
name: Create .env
command: |
cp .env.circle-ci .env
- run:
name: Create Calendar Sync database
command: |
bash scripts/create-database circle-ci
- run:
name: Build database
command: |
bash rebuild_database
- run:
name: Run Tests
command: |
./test

jobs:
mariadb10:
docker:
- image: cimg/php:8.1
- image: cimg/mariadb:10.4.33
command: mysqld --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: "secret"
resource_class: small
steps:
- build

workflows:
version: 2
goodtalk-settings:
jobs:
- mariadb10
4 changes: 2 additions & 2 deletions .env.travis → .env.circle-ci
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DB_CONNECTION=mysql
DB_HOST=localhost
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=testing
DB_USERNAME=homestead
DB_USERNAME=hypercontext
DB_PASSWORD=secret
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/vendor
/node_modules
.env
.idea
.phpunit.result.cache
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

15 changes: 7 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,19 @@
}
],
"require": {
"illuminate/support": "^6.0",
"illuminate/database": "^6.0",
"symfony/cache": "^3.3",
"jaspaul/eloquent-model-validation": "^1.0"
"illuminate/support": "^9.0.0",
"illuminate/database": "^9.0.0"
},
"require-dev": {
"orchestra/testbench": "^4.0",
"phpunit/phpunit": "~8.0",
"fzaninotto/faker": "^1.6",
"orchestra/testbench": "^7.41.3",
"phpunit/phpunit": "^9.5",
"fakerphp/faker": "^1.23.1",
"squizlabs/php_codesniffer": "^3.0"
},
"autoload": {
"psr-4": {
"SoapBox\\Settings\\": "src"
"SoapBox\\Settings\\": "src",
"Database\\Factories\\": "database/factories/"
}
},
"autoload-dev": {
Expand Down
Loading