-
Notifications
You must be signed in to change notification settings - Fork 49
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 #1519 from tripal/tv4g9-issue1455-upgradeDockers
Adds a Dockerfile for PHP 8.2 and testing for Drupal 10.1.x
- Loading branch information
Showing
18 changed files
with
416 additions
and
365 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: PHPUnit | ||
on: | ||
push: | ||
branches: | ||
- 4.x | ||
- tv4g9-issue1455-upgradeDockers | ||
jobs: | ||
running-tests: | ||
name: "Drupal 9.4: PHP 8.0" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Run Automated testing | ||
uses: tripal/test-tripal-action@v1.1 | ||
with: | ||
directory-name: 'tripal' | ||
modules: 'tripal tripal_biodb tripal_chado' | ||
php-version: '8.0' | ||
pgsql-version: '13' | ||
drupal-version: '9.4.x-dev' | ||
build-image: true | ||
dockerfile: "UseTripalDockerBackupClause" |
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,23 @@ | ||
name: PHPUnit | ||
on: | ||
push: | ||
branches: | ||
- 4.x | ||
- tv4g9-issue1455-upgradeDockers | ||
jobs: | ||
running-tests: | ||
name: "Drupal 9.5: PHP 8.0" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Run Automated testing | ||
uses: tripal/test-tripal-action@v1.1 | ||
with: | ||
directory-name: 'tripal' | ||
modules: 'tripal tripal_biodb tripal_chado' | ||
php-version: '8.0' | ||
pgsql-version: '13' | ||
drupal-version: '9.5.x-dev' | ||
build-image: true | ||
dockerfile: "UseTripalDockerBackupClause" |
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,48 +1,23 @@ | ||
|
||
name: PHPUnit | ||
on: | ||
push: | ||
branches: | ||
- 4.x | ||
|
||
env: | ||
DRUPALVER: 10.0.x-dev | ||
|
||
- tv4g9-issue1455-upgradeDockers | ||
jobs: | ||
run-tests: | ||
name: "Drupal 10.0.x-dev (PHP 8.1)" | ||
running-tests: | ||
name: "Drupal 10.0: PHP 8.1" | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Check out the repo | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
# Here we fully build a docker using the current checked out code | ||
# to ensure we have not broken the install/build process. | ||
- name: Build the Docker | ||
run: | | ||
docker build --tag=tripaldocker:localdocker \ | ||
--build-arg drupalversion="$DRUPALVER" \ | ||
--build-arg chadoschema="testchado" \ | ||
--build-arg composerpackages="" \ | ||
--build-arg modules="" \ | ||
./ --file tripaldocker/Dockerfile-php8.1-pgsql13 | ||
# Just spin up docker the good ol' fashion way. | ||
- name: Spin up Local Docker | ||
run: | | ||
docker run --publish=80:80 --name=tripaldocker -tid \ | ||
--volume=`pwd`:/var/www/drupal9/web/modules/contrib/tripal \ | ||
tripaldocker:localdocker | ||
docker exec tripaldocker service postgresql restart | ||
# Runs the PHPUnit tests. | ||
- name: Run PHPUnit Tests | ||
env: | ||
SIMPLETEST_BASE_URL: "http://localhost" | ||
SIMPLETEST_DB: "pgsql://drupaladmin:drupal9developmentonlylocal@localhost/sitedb" | ||
BROWSER_OUTPUT_DIRECTORY: "/var/www/drupal9/web/sites/default/files/simpletest" | ||
run: | | ||
docker exec tripaldocker service postgresql restart | ||
docker exec -e SIMPLETEST_BASE_URL=$SIMPLETEST_BASE_URL \ | ||
-e SIMPLETEST_DB=$SIMPLETEST_DB \ | ||
-e BROWSER_OUTPUT_DIRECTORY=$BROWSER_OUTPUT_DIRECTORY \ | ||
--workdir=/var/www/drupal9/web/modules/contrib/tripal \ | ||
tripaldocker phpunit | ||
uses: actions/checkout@v3 | ||
- name: Run Automated testing | ||
uses: tripal/test-tripal-action@v1.1 | ||
with: | ||
directory-name: 'tripal' | ||
modules: 'tripal tripal_biodb tripal_chado' | ||
php-version: '8.1' | ||
pgsql-version: '13' | ||
drupal-version: '10.0.x-dev' | ||
build-image: true | ||
dockerfile: "UseTripalDockerBackupClause" |
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,23 @@ | ||
name: PHPUnit | ||
on: | ||
push: | ||
branches: | ||
- 4.x | ||
- tv4g9-issue1455-upgradeDockers | ||
jobs: | ||
running-tests: | ||
name: "Drupal 10.1: PHP 8.1" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Run Automated testing | ||
uses: tripal/test-tripal-action@v1.1 | ||
with: | ||
directory-name: 'tripal' | ||
modules: 'tripal tripal_biodb tripal_chado' | ||
php-version: '8.1' | ||
pgsql-version: '13' | ||
drupal-version: '10.1.x-dev' | ||
build-image: true | ||
dockerfile: "UseTripalDockerBackupClause" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,23 @@ | ||
|
||
name: PHPUnit | ||
on: | ||
push: | ||
branches: | ||
- 4.x | ||
|
||
env: | ||
DRUPALVER: 9.4.x-dev | ||
|
||
- tv4g9-issue1455-upgradeDockers | ||
jobs: | ||
run-tests: | ||
name: "Drupal 9.4.x-dev (PHP 8.1)" | ||
running-tests: | ||
name: "Drupal 9.4: PHP 8.1" | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Check out the repo | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
# Here we fully build a docker using the current checked out code | ||
# to ensure we have not broken the install/build process. | ||
- name: Build the Docker | ||
run: | | ||
docker build --tag=tripaldocker:localdocker \ | ||
--build-arg drupalversion="$DRUPALVER" \ | ||
--build-arg chadoschema='testchado' ./ \ | ||
--file tripaldocker/Dockerfile-php8.1-pgsql13 | ||
# Just spin up docker the good ol' fashion way. | ||
- name: Spin up Local Docker | ||
run: | | ||
docker run --publish=80:80 --name=tripaldocker -tid \ | ||
--volume=`pwd`:/var/www/drupal9/web/modules/contrib/tripal \ | ||
tripaldocker:localdocker | ||
docker exec tripaldocker service postgresql restart | ||
# Runs the PHPUnit tests. | ||
- name: Run PHPUnit Tests | ||
env: | ||
SIMPLETEST_BASE_URL: "http://localhost" | ||
SIMPLETEST_DB: "pgsql://drupaladmin:drupal9developmentonlylocal@localhost/sitedb" | ||
BROWSER_OUTPUT_DIRECTORY: "/var/www/drupal9/web/sites/default/files/simpletest" | ||
run: | | ||
docker exec tripaldocker service postgresql restart | ||
docker exec -e SIMPLETEST_BASE_URL=$SIMPLETEST_BASE_URL \ | ||
-e SIMPLETEST_DB=$SIMPLETEST_DB \ | ||
-e BROWSER_OUTPUT_DIRECTORY=$BROWSER_OUTPUT_DIRECTORY \ | ||
--workdir=/var/www/drupal9/web/modules/contrib/tripal \ | ||
tripaldocker phpunit | ||
uses: actions/checkout@v3 | ||
- name: Run Automated testing | ||
uses: tripal/test-tripal-action@v1.1 | ||
with: | ||
directory-name: 'tripal' | ||
modules: 'tripal tripal_biodb tripal_chado' | ||
php-version: '8.1' | ||
pgsql-version: '13' | ||
drupal-version: '9.4.x-dev' | ||
build-image: true | ||
dockerfile: "UseTripalDockerBackupClause" |
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,46 +1,23 @@ | ||
|
||
name: PHPUnit | ||
on: | ||
push: | ||
branches: | ||
- 4.x | ||
|
||
env: | ||
DRUPALVER: 9.5.x-dev | ||
|
||
- tv4g9-issue1455-upgradeDockers | ||
jobs: | ||
run-tests: | ||
name: "Drupal 9.5.x-dev (PHP 8.1)" | ||
running-tests: | ||
name: "Drupal 9.5: PHP 8.1" | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Check out the repo | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
# Here we fully build a docker using the current checked out code | ||
# to ensure we have not broken the install/build process. | ||
- name: Build the Docker | ||
run: | | ||
docker build --tag=tripaldocker:localdocker \ | ||
--build-arg drupalversion="$DRUPALVER" \ | ||
--build-arg chadoschema='testchado' ./ \ | ||
--file tripaldocker/Dockerfile-php8.1-pgsql13 | ||
# Just spin up docker the good ol' fashion way. | ||
- name: Spin up Local Docker | ||
run: | | ||
docker run --publish=80:80 --name=tripaldocker -tid \ | ||
--volume=`pwd`:/var/www/drupal9/web/modules/contrib/tripal \ | ||
tripaldocker:localdocker | ||
docker exec tripaldocker service postgresql restart | ||
# Runs the PHPUnit tests. | ||
- name: Run PHPUnit Tests | ||
env: | ||
SIMPLETEST_BASE_URL: "http://localhost" | ||
SIMPLETEST_DB: "pgsql://drupaladmin:drupal9developmentonlylocal@localhost/sitedb" | ||
BROWSER_OUTPUT_DIRECTORY: "/var/www/drupal9/web/sites/default/files/simpletest" | ||
run: | | ||
docker exec tripaldocker service postgresql restart | ||
docker exec -e SIMPLETEST_BASE_URL=$SIMPLETEST_BASE_URL \ | ||
-e SIMPLETEST_DB=$SIMPLETEST_DB \ | ||
-e BROWSER_OUTPUT_DIRECTORY=$BROWSER_OUTPUT_DIRECTORY \ | ||
--workdir=/var/www/drupal9/web/modules/contrib/tripal \ | ||
tripaldocker phpunit | ||
uses: actions/checkout@v3 | ||
- name: Run Automated testing | ||
uses: tripal/test-tripal-action@v1.1 | ||
with: | ||
directory-name: 'tripal' | ||
modules: 'tripal tripal_biodb tripal_chado' | ||
php-version: '8.1' | ||
pgsql-version: '13' | ||
drupal-version: '9.5.x-dev' | ||
build-image: true | ||
dockerfile: "UseTripalDockerBackupClause" |
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,23 @@ | ||
name: PHPUnit | ||
on: | ||
push: | ||
branches: | ||
- 4.x | ||
- tv4g9-issue1455-upgradeDockers | ||
jobs: | ||
running-tests: | ||
name: "Drupal 10.0: PHP 8.2" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Run Automated testing | ||
uses: tripal/test-tripal-action@v1.1 | ||
with: | ||
directory-name: 'tripal' | ||
modules: 'tripal tripal_biodb tripal_chado' | ||
php-version: '8.2' | ||
pgsql-version: '13' | ||
drupal-version: '10.0.x-dev' | ||
build-image: true | ||
dockerfile: "UseTripalDockerBackupClause" |
Oops, something went wrong.