Skip to content

Commit

Permalink
CI: Migrate to Github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpanderson committed May 29, 2024
1 parent a7a1668 commit f9a1158
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 62 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Unit Tests

on: [push]

jobs:
build-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@run-as-current-user

- name: PHPUnit Tests
uses: php-actions/phpunit@v4
with:
bootstrap: vendor/autoload.php
configuration: phpunit.xml
12 changes: 6 additions & 6 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
tools:
external_code_coverage: true

checks:
php:
code_rating: true
build:
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MySQLite
========
[![Build Status](https://travis-ci.org/Vectorface/MySQLite.svg?branch=master)](https://travis-ci.org/Vectorface/MySQLite)
[![Build Status](https://github.com/Vectorface/MySQLite/actions/workflows/ci.yml/badge.svg)](https://github.com/Vectorface/MySQLite/actions)
[![Code Coverage](https://scrutinizer-ci.com/g/Vectorface/MySQLite/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Vectorface/MySQLite/?branch=master)

MySQLite is an easy way to add MySQL functions to SQLite accessed through PDO. This can be useful for testing and development where an SQLite database may be more practical than a real MySQL database.
Expand Down
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
"source": "https://github.com/Vectorface/MySQLite"
},
"require": {
"php": ">=5.4.0"
"php": "^8.0.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8",
"squizlabs/php_codesniffer": "~2.0",
"codeclimate/php-test-reporter": "dev-master"
"phpunit/phpunit": "^9",
"squizlabs/php_codesniffer": "~2.0"
}
}
39 changes: 16 additions & 23 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.3/phpunit.xsd"
backupGlobals="false"
colors="true"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="MySQL compatibility functions for SQLite">
<directory>./tests/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./</directory>
<exclude>
<directory>vendor</directory>
<directory>tests</directory>
</exclude>
</whitelist>
</filter>
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" colors="true" backupStaticAttributes="false" bootstrap="vendor/autoload.php">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./</directory>
</include>
<exclude>
<directory>vendor</directory>
<directory>tests</directory>
</exclude>
</coverage>
<testsuites>
<testsuite name="MySQL compatibility functions for SQLite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
</phpunit>

0 comments on commit f9a1158

Please sign in to comment.