Skip to content

Commit b7dfaf6

Browse files
committed
Merge pull request wp-sync-db#79 from wp-sync-db/add-basic-tests
add basic tests
2 parents 63617ed + 20af301 commit b7dfaf6

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: php
2+
php:
3+
- '5.4'
4+
- nightly
5+
install: composer install
6+
script: composer test

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@
77
"keywords": ["plugin","wordpress","wp-sync-db","db"],
88
"require": {
99
"composer/installers": "~1.0.6"
10+
},
11+
"scripts": {
12+
"test": "./test.sh"
1013
}
1114
}

test.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -e
3+
set -o pipefail
4+
5+
files=(wp-sync-db.php class/*.php compatibility/*.php template/*.php);
6+
for file in "${files[@]}"
7+
do
8+
php -l "$file";
9+
done

0 commit comments

Comments
 (0)