forked from KnpLabs/DoctrineBehaviors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (53 loc) · 2.59 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
language: php
sudo: false
php:
- 5.5
- 5.6
- 7.0
matrix:
fast_finish: true
exclude:
- php: 5.5
env: DOCTRINE_COMMON_VERSION="dev-master" DB=mysql DB_USER=root PREFER=latest
- php: 5.5
env: DOCTRINE_COMMON_VERSION="dev-master" DB=pgsql PREFER=latest
- php: 5.5
env: DOCTRINE_COMMON_VERSION="dev-master" DB=mysql DB_USER=root PREFER=lowest
- php: 5.5
env: DOCTRINE_COMMON_VERSION="dev-master" DB=pgsql PREFER=lowest
env:
matrix:
- DOCTRINE_COMMON_VERSION="~2.4.0" DB=mysql DB_USER=root PREFER=latest
- DOCTRINE_COMMON_VERSION="~2.5.0" DB=mysql DB_USER=root PREFER=latest
- DOCTRINE_COMMON_VERSION="~2.6.0" DB=mysql DB_USER=root PREFER=latest
- DOCTRINE_COMMON_VERSION="dev-master" DB=mysql DB_USER=root PREFER=latest
- DOCTRINE_COMMON_VERSION="~2.4.0" DB=pgsql PREFER=latest
- DOCTRINE_COMMON_VERSION="~2.5.0" DB=pgsql PREFER=latest
- DOCTRINE_COMMON_VERSION="~2.6.0" DB=pgsql PREFER=latest
- DOCTRINE_COMMON_VERSION="dev-master" DB=pgsql PREFER=latest
- DOCTRINE_COMMON_VERSION="~2.4.0" DB=mysql DB_USER=root PREFER=lowest
- DOCTRINE_COMMON_VERSION="~2.5.0" DB=mysql DB_USER=root PREFER=lowest
- DOCTRINE_COMMON_VERSION="~2.6.0" DB=mysql DB_USER=root PREFER=lowest
- DOCTRINE_COMMON_VERSION="dev-master" DB=mysql DB_USER=root PREFER=lowest
- DOCTRINE_COMMON_VERSION="~2.4.0" DB=pgsql PREFER=lowest
- DOCTRINE_COMMON_VERSION="~2.5.0" DB=pgsql PREFER=lowest
- DOCTRINE_COMMON_VERSION="~2.6.0" DB=pgsql PREFER=lowest
- DOCTRINE_COMMON_VERSION="dev-master" DB=pgsql PREFER=lowest
global:
- secure: "VKbBEUu1CftMOWU+dKRmV3KWMB/2rtTYbQh3jR2cgtIZuELPc/QvCgUO2YsiG686vaOOJt9pwVW+CAmQBManRxJEGvJMD3LI3/gif8HH478DYobRO8QLgpICGZrpMx85i8y9ln69gigERdEkHo8ILtwYTRzV4nK9LqVXVTxcnjQ="
cache:
directories:
- $HOME/.composer/cache
before_script:
- composer self-update
- composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database orm_behaviors_test' -U postgres; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then psql orm_behaviors_test -c 'create extension cube' -U postgres; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then psql orm_behaviors_test -c 'create extension earthdistance' -U postgres; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS orm_behaviors_test' -u$DB_USER; fi"
- composer require doctrine/common:${DOCTRINE_COMMON_VERSION}
- sh -c "if [ '$PREFER' = 'lowest' ]; then composer update --prefer-lowest; fi"
script:
- bin/parallel-lint -e php,phpt --exclude vendor .
- bin/yaml-lint config/*
- bin/phpunit --testdox