Skip to content

Commit c383180

Browse files
authored
Travis (#2)
* Added Travis-CI integration * Added Unit Testing
1 parent 81171c6 commit c383180

File tree

10 files changed

+392
-19
lines changed

10 files changed

+392
-19
lines changed

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: php
2+
3+
php:
4+
- 7.2
5+
- nightly
6+
7+
install:
8+
# Making sure we're on the latest
9+
- sudo apt-get update #&& sudo apt-get upgrade -y
10+
# We need sqlite3 to test with.
11+
- sudo apt-get install sqlite3
12+
13+
before_script:
14+
- composer self-update
15+
- composer install

composer.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44
"type": "library",
55
"require": {
66
"vectorface/mysqlite": "^0.1.4",
7-
"illuminate/database": "^5.7"
7+
"illuminate/database": "^5.7",
8+
"php": ">=7.2.0"
89
},
910
"require-dev": {
1011
"phpunit/phpunit": "^7.5",
1112
"squizlabs/php_codesniffer": "^3.4",
12-
"phpmd/phpmd": "^2.6"
13+
"phpmd/phpmd": "^2.6",
14+
"codedungeon/phpunit-result-printer": "dev-master",
15+
"phpunit/php-code-coverage": "^6.1@dev"
1316
},
1417
"license": "MIT",
1518
"authors": [
@@ -22,5 +25,6 @@
2225
"psr-4": {
2326
"Mhorninger\\": "src/Mhorninger/"
2427
}
25-
}
26-
}
28+
},
29+
"minimum-stability": "dev"
30+
}

0 commit comments

Comments
 (0)