|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- language: php
- dist: xenial
-
- cache:
- directories:
- - $HOME/.cache/pip
- - $HOME/.composer/cache
-
- php:
- - 7.2
- - 7.3
- - 7.4
- - nightly
-
- matrix:
- fast_finish: true
- allow_failures:
- - php: nightly
- include:
- - php: 7.2
- env: PREFER_LOWEST=1
- - php: 7.4
- env: LINT=1
-
- before_install:
- - PYTHON3_VERSION=$(pyenv versions | grep -oP "3.[0-9]{1,}.[0-9]{1,}" | tail -1)
- - pyenv global ${PYTHON3_VERSION}
-
- install:
- - if [[ $PREFER_LOWEST != 1 ]]; then travis_retry composer update --no-interaction --prefer-dist; fi
- - if [[ $PREFER_LOWEST == 1 ]]; then travis_retry composer update --no-interaction --prefer-dist --prefer-lowest; fi
- - if [[ $LINT != 1 ]]; then pip3 install --user cchardet xld_logchecker eac_logchecker; fi
-
- script:
- - if [[ $LINT == 1 ]]; then composer run lint; fi
- - if [[ $LINT == 1 ]]; then composer run static-analysis; fi
- - if [[ $LINT != 1 ]]; then composer run test; fi
- - if [[ $LINT != 1 ]]; then bin/logchecker --version; fi
-
- before_deploy:
- - rm -rf vendor
- - composer install --no-dev --optimize-autoloader
- - php -d phar.readonly=0 bin/compile
-
- deploy:
- provider: releases
- api_key:
- secure: jlvbD7nzOz/8vssSI75loBMJE9OosAofTu1IDMc3bfxfRaPT6c2duebJF7Bm0VCTGYWK3Wc+19wwyLpCMoueUUEtKqi6RGIUQyboQvbSEe/cje7/9PgqmFstV8LdBLNOwRVj01YcmGw/iMVc+GxPTtDZtcwVU9bzlMCwXFAlggeId0Qw6KgxN+wTbm+oS3zrIh+TnWhgeWhmMYn0/UAEUEQCsYDI+UJjGWStWdpdJqdMhidg5GQyVtomFg82ZjIw+ywYGMGgq38S4PMRBLoqbxuWs++9LPblWboxtktb4+U0xUMdHfrv/r94b8+nI2SJ1xzzUKTXS/glkk0lJAovSYew6jJiu+gsejiNyR89WNgRGwnWAUA8ZBptrM2b3sxLuZ6RuxQXP3TMpxhQQE/3aodOrACPOHa8uuct0JAj/a2p0WCIj4r76McHrXTjFzDPsbdxD1GwOQmFJGqY5EV7Vez6q++Erp/64JEZJk9/jieTv0arLe76VZPQcZ6TB488tH699MvK7Gg1cc4114FbKIEZrOKF2FOrMAZJ3husjELN0zJYeRPZUy6Y7A2PAWsqfdswlxjP9IxuDFVE/3TW8O1sVItWo4+SSkKTILzsC0qgxVL2lW9WDmyka8U5T2SAa8ye/RRZ3FJYugep49wjUsfLraRdA+Lj7KQXSaMlFa8=
- file: logchecker.phar
- skip_cleanup: true
- on:
- tags: true
- repo: OPSnet/Logchecker
- php: '7.2'
|