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

Commit 4849040

Browse files
Enable Travis
1 parent d88bafa commit 4849040

2 files changed

Lines changed: 54 additions & 1 deletion

File tree

.travis.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
language: php
2+
3+
sudo: false
4+
5+
cache:
6+
directories:
7+
- $HOME/.composer/cache
8+
9+
matrix:
10+
include:
11+
- php: 7.0
12+
env: SYMFONY_VERSION=2.8.*
13+
- php: 7.0
14+
env: SYMFONY_VERSION=3.3.*
15+
- php: 7.0
16+
env: DEPENDENCIES=beta
17+
- php: 7.1
18+
env: SYMFONY_VERSION=2.8.*
19+
- php: 7.1
20+
env: SYMFONY_VERSION=3.3.*
21+
- php: 7.1
22+
env: DEPENDENCIES=beta
23+
- php: 7.2
24+
env: SYMFONY_VERSION=2.8.*
25+
- php: 7.2
26+
env: SYMFONY_VERSION=3.3.*
27+
- php: 7.2
28+
- php: nightly
29+
env: SYMFONY_VERSION=2.8.*
30+
- php: nightly
31+
env: SYMFONY_VERSION=3.3.*
32+
- php: nightly
33+
env: DEPENDENCIES=beta
34+
allow_failures:
35+
- php: nightly
36+
37+
env:
38+
global:
39+
- deps=no
40+
41+
before_install:
42+
- composer self-update
43+
# Set composer minimum-stability configuration filter to beta versions
44+
- if [ "$DEPENDENCIES" = "beta" ]; then perl -pi -e 's/^}$/,"minimum-stability":"beta"}/' composer.json; fi;
45+
46+
install:
47+
- if [ "$deps" = "no" ]; then composer update; fi;
48+
- if [ "$deps" = "low" ]; then composer --prefer-lowest --prefer-stable update; fi;
49+
50+
script:
51+
- vendor/jakub-onderka/php-parallel-lint/parallel-lint --exclude vendor .

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
"stof/doctrine-extensions-bundle": "*"
2323
},
2424
"require-dev": {
25-
"phpunit/phpunit": "^5.6"
25+
"phpunit/phpunit": "^5.6",
26+
"roave/security-advisories": "dev-master",
27+
"jakub-onderka/php-parallel-lint": "^0.9.2"
2628
},
2729
"autoload": {
2830
"psr-0": {

0 commit comments

Comments
 (0)