Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
Enable Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-georgiev committed Nov 27, 2017
1 parent d88bafa commit 4849040
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
language: php

sudo: false

cache:
directories:
- $HOME/.composer/cache

matrix:
include:
- php: 7.0
env: SYMFONY_VERSION=2.8.*
- php: 7.0
env: SYMFONY_VERSION=3.3.*
- php: 7.0
env: DEPENDENCIES=beta
- php: 7.1
env: SYMFONY_VERSION=2.8.*
- php: 7.1
env: SYMFONY_VERSION=3.3.*
- php: 7.1
env: DEPENDENCIES=beta
- php: 7.2
env: SYMFONY_VERSION=2.8.*
- php: 7.2
env: SYMFONY_VERSION=3.3.*
- php: 7.2
- php: nightly
env: SYMFONY_VERSION=2.8.*
- php: nightly
env: SYMFONY_VERSION=3.3.*
- php: nightly
env: DEPENDENCIES=beta
allow_failures:
- php: nightly

env:
global:
- deps=no

before_install:
- composer self-update
# Set composer minimum-stability configuration filter to beta versions
- if [ "$DEPENDENCIES" = "beta" ]; then perl -pi -e 's/^}$/,"minimum-stability":"beta"}/' composer.json; fi;

install:
- if [ "$deps" = "no" ]; then composer update; fi;
- if [ "$deps" = "low" ]; then composer --prefer-lowest --prefer-stable update; fi;

script:
- vendor/jakub-onderka/php-parallel-lint/parallel-lint --exclude vendor .
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"stof/doctrine-extensions-bundle": "*"
},
"require-dev": {
"phpunit/phpunit": "^5.6"
"phpunit/phpunit": "^5.6",
"roave/security-advisories": "dev-master",
"jakub-onderka/php-parallel-lint": "^0.9.2"
},
"autoload": {
"psr-0": {
Expand Down

0 comments on commit 4849040

Please sign in to comment.