File: .travis.yml

package info (click to toggle)
phpmd 2.9.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,428 kB
  • sloc: php: 14,037; xml: 1,619; makefile: 25
file content (93 lines) | stat: -rw-r--r-- 2,477 bytes parent folder | download
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
language: php

matrix:
  include:
    - php: 5.3
      dist: precise
    - php: 5.3
      dist: precise
      env: DEPENDENCIES=low
    - php: 5.4
      dist: trusty
    - php: 5.4
      dist: trusty
      env: DEPENDENCIES=low
    - php: 5.5
      dist: trusty
    - php: 5.5
      dist: trusty
      env: DEPENDENCIES=low
    - php: 5.6
    - php: 5.6
      env: DEPENDENCIES=low
    - php: 7.0
    - php: 7.0
      env: DEPENDENCIES=low
    - php: 7.1
    - php: 7.1
      env: DEPENDENCIES=low
    - php: 7.2
    # Could be enabled when we'll upgrade PHPUnit
    # - php: 7.2
    #   env: DEPENDENCIES=low
    - php: 7.3
      env: COVERAGE=true
    # Could be enabled when we'll upgrade PHPUnit
    # - php: 7.3
    #   env: DEPENDENCIES=low
    - php: 7.4
    - php: 5.4
      dist: trusty
      env: BUILD_PHAR=true
    - php: 7.3
      env: WEBSITE=true
  fast_finish: true

sudo: false

env:
    global:
        TEST_CONFIG="phpunit.xml.dist"

before_script:
  - phpenv config-rm xdebug.ini || echo "XDebug is not enabled"
  - composer self-update
  - if [[ $DEPENDENCIES = low ]]; then composer update --prefer-dist --prefer-lowest --prefer-stable; fi
  - if [[ ! $DEPENDENCIES ]]; then composer install; fi

script:
  - if [[ $WEBSITE  = 'true' ]]; then cp src/site/rst/* src/site/resources/web/ -r && composer build-website; fi
  - if [[ $WEBSITE != 'true' && $BUILD_PHAR != 'true' && $COVERAGE != 'true' ]]; then vendor/bin/phpunit --configuration $TEST_CONFIG --colors; fi
  - if [[ $WEBSITE != 'true' && $BUILD_PHAR != 'true' && $COVERAGE = 'true' ]]; then phpdbg -qrr vendor/bin/phpunit --configuration $TEST_CONFIG --colors --coverage-text --coverage-clover=coverage.xml; fi
  - if [[ $BUILD_PHAR = 'true' ]]; then git submodule update --init && ant package -D-phar:filename=./phpmd.phar && ./phpmd.phar --version; fi

notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/5a993c0b870b2fa9141e # PHPMD Gitter Core Channel
      - https://webhooks.gitter.im/e/1c62ab29700f53c70ec5 # PHPMD Gitter Community Channel
    on_success: change
    on_failure: always
    on_start: never

deploy:
- provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN
  local_dir: dist/website
  on:
    branch: master
    condition: $WEBSITE
- provider: releases
  api_key: $GITHUB_TOKEN
  file: phpmd.phar
  skip_cleanup: true
  on:
    tags: true
    repo: phpmd/phpmd
    condition: "$BUILD_PHAR"

addons:
  snaps:
  - name: ant
    classic: true