Blame view

vendor/webmozart/assert/.travis.yml 1.03 KB
196bf1b1   Etienne Pallier   modifs de droits ...
1
2
3
4
language: php

sudo: false

4b7c9c89   Thibault Ajas   maj installation.sh
5
6
7
8
branches:
  only:
    - master

196bf1b1   Etienne Pallier   modifs de droits ...
9
10
cache:
  directories:
4b7c9c89   Thibault Ajas   maj installation.sh
11
    - $HOME/.composer/cache/files
196bf1b1   Etienne Pallier   modifs de droits ...
12
13
14
15
16
17
18

matrix:
  include:
    - php: 5.3
    - php: 5.4
    - php: 5.5
    - php: 5.6
196bf1b1   Etienne Pallier   modifs de droits ...
19
20
    - php: hhvm
    - php: nightly
4b7c9c89   Thibault Ajas   maj installation.sh
21
22
23
24
    - php: 7.0
      env: COVERAGE=yes
    - php: 7.0
      env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
196bf1b1   Etienne Pallier   modifs de droits ...
25
26
27
28
29
  allow_failures:
    - php: hhvm
    - php: nightly
  fast_finish: true

4b7c9c89   Thibault Ajas   maj installation.sh
30
31
32
33
34
35
before_install:
  - if [[ $TRAVIS_PHP_VERSION != hhvm && $COVERAGE != yes ]]; then phpenv config-rm xdebug.ini; fi;
  - if [[ $TRAVIS_REPO_SLUG = webmozart/assert ]]; then cp .composer-auth.json ~/.composer/auth.json; fi;
  - composer self-update

install: composer update $COMPOSER_FLAGS --prefer-dist --no-interaction
196bf1b1   Etienne Pallier   modifs de droits ...
36

4b7c9c89   Thibault Ajas   maj installation.sh
37
script: if [[ $COVERAGE = yes ]]; then vendor/bin/phpunit --verbose --coverage-clover=coverage.clover; else vendor/bin/phpunit --verbose; fi
196bf1b1   Etienne Pallier   modifs de droits ...
38

4b7c9c89   Thibault Ajas   maj installation.sh
39
after_script: if [[ $COVERAGE = yes ]]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi