Skip to content

Commit

Permalink
add basic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
notslang committed Mar 7, 2016
1 parent 63617ed commit 20af301
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: php
php:
- '5.4'
- nightly
install: composer install
script: composer test
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"keywords": ["plugin","wordpress","wp-sync-db","db"],
"require": {
"composer/installers": "~1.0.6"
},
"scripts": {
"test": "./test.sh"
}
}
9 changes: 9 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
set -e
set -o pipefail

files=(wp-sync-db.php class/*.php compatibility/*.php template/*.php);
for file in "${files[@]}"
do
php -l "$file";
done

0 comments on commit 20af301

Please sign in to comment.