Add test Travis configuration

This commit is contained in:
pxgamer
2018-08-28 23:55:27 +01:00
parent b974dc4c9a
commit 7a83f1ab10

25
.travis.yml Normal file
View File

@@ -0,0 +1,25 @@
dist: trusty
language: php
php:
- 7.2
- nightly
matrix:
allow_failures:
- php: nightly
# This triggers builds to run on the new TravisCI infrastructure.
# See: https://docs.travis-ci.com/user/reference/trusty#Container-based-with-sudo%3A-false
sudo: false
## Cache composer
cache:
directories:
- $HOME/.composer/cache
before_script:
- travis_retry composer update --no-interaction --prefer-dist
script:
- vendor/bin/phpcs -p --standard=psr2 . include