Skip to content

Commit f9a1158

Browse files
committed
CI: Migrate to Github CI
1 parent a7a1668 commit f9a1158

File tree

6 files changed

+43
-62
lines changed

6 files changed

+43
-62
lines changed

.github/workflows/ci.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Unit Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
build-test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: php-actions/composer@run-as-current-user
12+
13+
- name: PHPUnit Tests
14+
uses: php-actions/phpunit@v4
15+
with:
16+
bootstrap: vendor/autoload.php
17+
configuration: phpunit.xml

.scrutinizer.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
tools:
2-
external_code_coverage: true
3-
4-
checks:
5-
php:
6-
code_rating: true
1+
build:
2+
nodes:
3+
analysis:
4+
tests:
5+
override:
6+
- php-scrutinizer-run

.travis.yml

-28
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MySQLite
22
========
3-
[![Build Status](https://travis-ci.org/Vectorface/MySQLite.svg?branch=master)](https://travis-ci.org/Vectorface/MySQLite)
3+
[![Build Status](https://github.com/Vectorface/MySQLite/actions/workflows/ci.yml/badge.svg)](https://github.com/Vectorface/MySQLite/actions)
44
[![Code Coverage](https://scrutinizer-ci.com/g/Vectorface/MySQLite/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Vectorface/MySQLite/?branch=master)
55

66
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.

composer.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@
2020
"source": "https://github.com/Vectorface/MySQLite"
2121
},
2222
"require": {
23-
"php": ">=5.4.0"
23+
"php": "^8.0.0"
2424
},
2525
"require-dev": {
26-
"phpunit/phpunit": "^4.8",
27-
"squizlabs/php_codesniffer": "~2.0",
28-
"codeclimate/php-test-reporter": "dev-master"
26+
"phpunit/phpunit": "^9",
27+
"squizlabs/php_codesniffer": "~2.0"
2928
}
3029
}

phpunit.xml

+16-23
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
1-
<phpunit
2-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.3/phpunit.xsd"
4-
backupGlobals="false"
5-
colors="true"
6-
backupStaticAttributes="false"
7-
bootstrap="vendor/autoload.php"
8-
>
9-
<testsuites>
10-
<testsuite name="MySQL compatibility functions for SQLite">
11-
<directory>./tests/</directory>
12-
</testsuite>
13-
</testsuites>
14-
15-
<filter>
16-
<whitelist processUncoveredFilesFromWhitelist="true">
17-
<directory suffix=".php">./</directory>
18-
<exclude>
19-
<directory>vendor</directory>
20-
<directory>tests</directory>
21-
</exclude>
22-
</whitelist>
23-
</filter>
1+
<?xml version="1.0"?>
2+
<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">
3+
<coverage processUncoveredFiles="true">
4+
<include>
5+
<directory suffix=".php">./</directory>
6+
</include>
7+
<exclude>
8+
<directory>vendor</directory>
9+
<directory>tests</directory>
10+
</exclude>
11+
</coverage>
12+
<testsuites>
13+
<testsuite name="MySQL compatibility functions for SQLite">
14+
<directory>./tests/</directory>
15+
</testsuite>
16+
</testsuites>
2417
</phpunit>

0 commit comments

Comments
 (0)