Skip to content

Commit

Permalink
Migrate jobs away from Travis to Github Actions
Browse files Browse the repository at this point in the history
It should be faster, and will result in one fewer CI platform to
maintain.
  • Loading branch information
greg0ire committed Sep 29, 2020
1 parent 1687865 commit fe06461
Show file tree
Hide file tree
Showing 22 changed files with 434 additions and 407 deletions.
381 changes: 381 additions & 0 deletions .github/workflows/continuous-integration.yml

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions .github/workflows/dev-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

name: "Scheduled checks"

on:
schedule:
- cron: 42 3 * * *

development-deps:
name: "PHPUnit with SQLite and development dependencies"
runs-on: "ubuntu-latest"

strategy:
matrix:
php-version:
- "7.4"

steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"

- name: "Cache dependencies installed with composer"
uses: "actions/cache@v2"
with:
path: "~/.composer/cache"
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"

- name: "Lower minimum stability"
run: "composer config minimum-stability dev"

- name: "Install development dependencies with composer"
run: "composer update --no-interaction --no-progress --no-suggest --prefer-dist"

- name: "Run PHPUnit"
run: "vendor/bin/phpunit -c ci/github/phpunit.sqlite.xml"
191 changes: 0 additions & 191 deletions .travis.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ set -ex
echo "Installing extension"
(
# updating APT packages as per support recommendation
sudo apt -y -q update
sudo apt install ksh
sudo apt-get -y -q update
sudo apt-get install ksh php-pear

cd /tmp

Expand All @@ -21,7 +21,6 @@ echo "Installing extension"
cd ibm_db2-*
phpize
./configure --with-IBM_DB2=/tmp/dsdriver
make -j `nproc`
make install
echo -e 'extension=ibm_db2.so\nibm_db2.instance_name=db2inst1' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/ibm_db2.ini
make -j $(nproc)
sudo make install
)
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
<var name="db_driver" value="pdo_pgsql"/>
<var name="db_host" value="localhost" />
<var name="db_user" value="postgres" />
<var name="db_password" value="postgres" />
<var name="db_dbname" value="doctrine_tests" />
</php>

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<testsuites>
<testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory>
<directory>../../tests</directory>
</testsuite>
</testsuites>

Expand Down
50 changes: 0 additions & 50 deletions tests/travis/docker-run-mysql-or-mariadb.sh

This file was deleted.

Loading

0 comments on commit fe06461

Please sign in to comment.