summaryrefslogtreecommitdiff
path: root/http/codebird-php/.travis.yml
blob: 6fe523577dd0225eb70cdcbfc62f55a9e99c715b (plain)
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
# The Travis setup:
# - run testsuite for every PHP version
# - run lint for every PHP version

language: php
sudo: false

php:
  - "7.0"
  - "5.6"
  - "5.5"
  - hhvm
  - nightly

sudo: false

before_script:
  - export PATH=~/.composer/vendor/bin/:$PATH
  - composer install --no-interaction
  - pip install --user codecov

script:
  - ant clean
  - set -e;
    if [ $TRAVIS_PHP_VERSION == "hhvm" ] ; then
    ant phpunit-hhvm ;
    else
    ant phpunit ;
    fi

after_script:
  - if [ -f vendor/bin/coveralls ] ; then php vendor/bin/coveralls -v || true ; fi
  - codecov
  - if [ -f php.log ] ; then cat php.log ; fi

matrix:
  allow_failures:
    - php: hhvm
    - php: nightly
  fast_finish: true
cache:
  directories:
    - $HOME/.composer/cache/
    - $HOME/runkit
# trigger Buildtime Trend Service to parse Travis CI log
notifications:
  webhooks:
    - https://buildtimetrend.herokuapp.com/travis