.travis.yml 717 Bytes
Newer Older
Tino Goratsch's avatar
Tino Goratsch committed
1
language: php
Tino Goratsch's avatar
Tino Goratsch committed
2 3 4 5
sudo: required
dist: trusty
group: edge
php:
6
  - 7.1
7
  - 7.2
8
  - nightly
9

10 11
matrix:
  fast_finish: true
12
  allow_failures:
13
    - php: nightly
14

Tino Goratsch's avatar
Tino Goratsch committed
15
before_install:
tinogo's avatar
tinogo committed
16
  - echo -e "machine github.com\n\tlogin ${ACP3_CI_USER_GH_TOKEN}" >> ~/.netrc
Tino Goratsch's avatar
Tino Goratsch committed
17

Tino Goratsch's avatar
Tino Goratsch committed
18
before_script:
Tino Goratsch's avatar
Tino Goratsch committed
19
  - ./build/travis/before_script.sh ${ACP3_CI_USER_GH_TOKEN} ${TRAVIS_PHP_VERSION}
Tino Goratsch's avatar
Tino Goratsch committed
20

Tino Goratsch's avatar
Tino Goratsch committed
21
script:
22
  - phpdbg -qrr ./vendor/bin/phpunit -c ./tests/phpunit.dist.xml --coverage-clover ./build/logs/clover.xml
Tino Goratsch's avatar
Tino Goratsch committed
23

Tino Goratsch's avatar
Tino Goratsch committed
24
deploy:
25 26
  - provider: script
    script: ./build/travis/update_version_check.sh ${TRAVIS_TAG}
27 28 29
    skip_cleanup: true
    on:
      tags: true
30
      condition: "$TRAVIS_PHP_VERSION = 7.1*"
31 32 33

cache:
  directories:
34
    - vendor
35
    - $HOME/.composer/cache