Skip to content

Commit e415503

Browse files
authored
Merge pull request #22 from oliverklee/task/travis-basics
[TASK] Add a basic .travis.yml
2 parents 507b2f7 + e7ec707 commit e415503

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.travis.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
sudo: false
2+
3+
language: php
4+
5+
cache:
6+
directories:
7+
- vendor
8+
9+
matrix:
10+
include:
11+
- php: 5.6
12+
- php: 7.0
13+
- php: 7.1
14+
- php: hhvm
15+
16+
install:
17+
- composer install
18+
19+
script:
20+
# Run PHP lint on all PHP files.
21+
- find core/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
22+
- php -l index.php
23+
# Run the unit tests.
24+
- vendor/bin/phpunit core/tests/

0 commit comments

Comments
 (0)