.travis.yml 1.4 KB
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
  - 5.6
7
  - 7.0.8
8 9
  - 7.1
  - nightly
10
  - hhvm
11

12 13
matrix:
  fast_finish: true
14
  allow_failures:
15 16
    - php: nightly
    - php: hhvm
17

18 19
addons:
  code_climate:
tinogo's avatar
tinogo committed
20
    repo_token: ${CC_REPO_TOKEN}
21

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

Tino Goratsch's avatar
Tino Goratsch committed
25
before_script:
Tino Goratsch's avatar
Tino Goratsch committed
26
  - ./build/travis/before_script.sh ${ACP3_CI_USER_GH_TOKEN} ${TRAVIS_PHP_VERSION}
Tino Goratsch's avatar
Tino Goratsch committed
27

Tino Goratsch's avatar
Tino Goratsch committed
28
script:
tinogo's avatar
tinogo committed
29
  - ./build/travis/run_unit_tests.sh ${TRAVIS_PHP_VERSION}
Tino Goratsch's avatar
Tino Goratsch committed
30

Tino Goratsch's avatar
Tino Goratsch committed
31 32
after_success:
  - travis_retry vendor/bin/coveralls -v
Tino Goratsch's avatar
Tino Goratsch committed
33

34 35 36
before_deploy:
  - ./build/travis/generate_artifact.sh ${TRAVIS_PHP_VERSION}

Tino Goratsch's avatar
Tino Goratsch committed
37
deploy:
38 39
  - provider: releases
    api_key: ${ACP3_CI_USER_GH_TOKEN}
40
    file: 'release.zip'
41 42 43
    skip_cleanup: true
    on:
      tags: true
44
      condition: "$TRAVIS_PHP_VERSION = 7.0*"
45
  - provider: script
Tino Goratsch's avatar
Tino Goratsch committed
46
    script: ./build/travis/update_module_repositories.sh ${TRAVIS_TAG}
Tino Goratsch's avatar
Tino Goratsch committed
47
    skip_cleanup: true
Tino Goratsch's avatar
Tino Goratsch committed
48 49
    on:
      tags: true
50
      condition: "$TRAVIS_PHP_VERSION = 7.0*"
Tino Goratsch's avatar
Tino Goratsch committed
51 52
  - provider: script
    script: ./build/travis/update_version_check.sh ${TRAVIS_TAG}
Tino Goratsch's avatar
Tino Goratsch committed
53
    skip_cleanup: true
54 55
    on:
      tags: true
56
      condition: "$TRAVIS_PHP_VERSION = 7.0*"
57 58 59 60
  - provider: script
    script: ./build/travis/generate_api_docs.sh
    skip_cleanup: true
    on:
61
      branch: master
62
      condition: "$TRAVIS_PHP_VERSION = 7.0*"
63 64 65

cache:
  directories:
66
    - vendor
67
    - $HOME/.composer/cache