summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 720406e3eea8a024c6d0b8d3a61f1b96e38724cb (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
language: php
php:
  - 5.4
  - 5.6
  - 7.0
  - 7.1
  - hhvm
env: PHPV=0
matrix:
  include:
    - php: 5.2
      dist: precise
      env: PHPV=52
    - php: 5.3
      dist: precise
before_script: |
  if [ "$PHPV" -ne 52 ]; then
    composer install
  else
    export X="$HOME/.idiorm/bin"
    mkdir -p "$X"
    curl -sSfL https://phar.phpunit.de/phpunit-4.phar -o "$X/phpunit"
    chmod +x "$X/phpunit"
  fi
script: |
  if [ "$PHPV" -ne 52 ]; then
    XZ="composer run-script test --"
  else
    XZ="$X/phpunit"
  fi
  $XZ --colors --coverage-text