forked from elcodi/elcodi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (33 loc) · 1.01 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
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
matrix:
include:
- php: 5.4
- php: 5.5
- php: 5.6
- php: 7.0
- php: hhvm
- php: nightly
- php: 5.4
env: $SYMFONY_VERSION="~2.7.0"
- php: 5.4
env: $SYMFONY_VERSION="~2.8.0"
- php: 5.5.9
env: $SYMFONY_VERSION="^3.0.0"
allow_failures:
- php: nightly
before_install:
- composer self-update
- composer config preferred-install source
- 'if [[ -n "$GH_TOKEN" ]]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;'
- 'if [[ -n "$GH_TOKEN" ]]; then composer config preferred-install dist; fi;'
- 'if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/symfony:${SYMFONY_VERSION}; fi;'
install: composer install --no-interaction --no-progress
script: vendor/bin/phpunit -v
after_success:
- 'if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_BRANCH == "master" && $TRAVIS_PHP_VERSION == "5.6" ]]; then sh generate-api.sh; fi;'
notifications:
email: false