-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #347 from GOCDB/release-5.9.0
Release 5.9.0 to master
- Loading branch information
Showing
125 changed files
with
3,675 additions
and
1,357 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
#!/bin/bash | ||
|
||
if [[ $TRAVIS ]]; then | ||
cd "$TRAVIS_BUILD_DIR" || exit 2 | ||
|
||
if [[ $GITHUB_ACTIONS ]]; then | ||
# Check modified PHP files with PHP's internal syntax checker | ||
git diff --name-only --diff-filter=ACMRTUXB HEAD^ | grep '\.php$' | xargs -r -n 1 php -l || exit 1 | ||
|
||
# Run test suite | ||
vendor/bin/phpunit --coverage-clover=coverage.xml tests/DoctrineTestSuite1.php | ||
else | ||
echo 'ABORTED: NOT RUNNING ON TRAVIS' | ||
echo 'ABORTED: NOT RUNNING ON GITHUB ACTIONS' | ||
exit 2 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
doctrine="$PWD/vendor/bin/doctrine" | ||
|
||
if [[ -n "$DB" ]]; then | ||
echo "Configuring unit tests for a $DB database" | ||
cp .github/actions/${DB}_bootstrap_doctrine.php tests/doctrine/bootstrap_doctrine.php | ||
cp .github/actions/${DB}_bootstrap_pdo.php tests/doctrine/bootstrap_pdo.php | ||
cd tests/doctrine | ||
$doctrine orm:schema-tool:create | ||
if [[ "$DB" = "mysql" ]]; then | ||
mysql --host '172.18.0.1' -u root -e 'set global max_connections = 200;' | ||
fi | ||
else | ||
echo 'Cannot setup unit tests, $DB is not defined.' | ||
exit 1 | ||
fi |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
name: "Continuous Integration" | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
phpunit-sqlite: | ||
# The SQLite version depends on the current environment. See documentation: | ||
# https://github.com/actions/virtual-environments/tree/main/images/linux | ||
name: "PHPUnit with SQLite, PHP: ${{ matrix.php-version }}" | ||
runs-on: ubuntu-latest | ||
# If true, allow this job to fail: | ||
continue-on-error: true | ||
strategy: | ||
matrix: | ||
# Define jobs for all combinations of values given to be tested: | ||
php-version: ["5.6"] | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2" | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
coverage: "xdebug" | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate | ||
|
||
- name: Cache Composer packages | ||
id: composer-cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php- | ||
- name: Install dependencies | ||
run: composer install --no-progress | ||
|
||
- name: Set up unit testing | ||
run: .github/actions/setup.sh | ||
env: | ||
DB: sqlite | ||
|
||
- name: Run unit tests | ||
run: .github/actions/run_tests.sh | ||
|
||
- name: "Upload to Codecov" | ||
uses: "codecov/codecov-action@v1" | ||
|
||
|
||
phpunit-mariadb: | ||
name: "PHPUnit with MariaDB: ${{ matrix.mariadb-version }}, PHP: ${{ matrix.php-version }}, extension: ${{ matrix.extension }}" | ||
runs-on: ubuntu-latest | ||
# If true, allow the job to fail: | ||
continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
# If true, stop jobs if a required job fails: | ||
fail-fast: false | ||
matrix: | ||
# Define jobs for all combinations of php, mariadb and extension, up to "include" | ||
# Tests will be performed for each combination | ||
# These can fail if "experimental" is true. Currently all must pass | ||
php-version: ["5.4", "5.5", "5.6", "7.0", "7.1"] | ||
mariadb-version: ["10.3"] | ||
extension: ["pdo_mysql"] | ||
experimental: [false] | ||
include: | ||
# Define jobs for individual combinations to be tested | ||
# These can fail if "experimental" is true. Currently all can fail | ||
- php-version: "7.2" | ||
mariadb-version: "10.3" | ||
extension: "pdo_mysql" | ||
experimental: true | ||
- php-version: "7.3" | ||
mariadb-version: "10.3" | ||
extension: "pdo_mysql" | ||
experimental: true | ||
- php-version: "7.4" | ||
mariadb-version: "10.3" | ||
extension: "pdo_mysql" | ||
experimental: true | ||
- php-version: "8.0" | ||
mariadb-version: "10.3" | ||
extension: "pdo_mysql" | ||
experimental: true | ||
|
||
services: | ||
mariadb: | ||
image: "mariadb:${{ matrix.mariadb-version }}" | ||
env: | ||
MYSQL_ALLOW_EMPTY_PASSWORD: yes | ||
MYSQL_DATABASE: "doctrine" | ||
MYSQL_USER: "user" | ||
MYSQL_PASSWORD: "password" | ||
|
||
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3 | ||
ports: | ||
- "3306:3306" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v2" | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
php-version: "${{ matrix.php-version }}" | ||
coverage: "xdebug" | ||
extensions: "${{ matrix.extension }}" | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate | ||
|
||
- name: Cache Composer packages | ||
id: composer-cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php- | ||
- name: Install dependencies | ||
run: composer install --no-progress | ||
|
||
- name: Set up unit testing | ||
run: .github/actions/setup.sh | ||
env: | ||
DB: mysql | ||
|
||
- name: Run unit tests | ||
run: .github/actions/run_tests.sh | ||
|
||
- name: "Upload to Codecov" | ||
uses: "codecov/codecov-action@v1" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.