1 Star 0 Fork 0

bit212/mautic_2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
dist: trusty
language: php
services:
- mysql
notifications:
webhooks: https://www.travisbuddy.com/
on_success: never
php:
- 7.2
- 7.3
cache:
directories:
- $HOME/.composer/cache
before_install:
# Create mautictest database
- mysql --version
- mysql -e 'DROP DATABASE IF EXISTS mautictest;'
- mysql -e 'CREATE DATABASE mautictest;'
# increase memory limit for all PHP processes
- echo "memory_limit=4G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
# turn off XDebug
- phpenv config-rm xdebug.ini || return
# install dependencies in parallel
- travis_retry composer global require hirak/prestissimo
# set to test environment for Symfony's commands in post install commands
- export SYMFONY_ENV="test"
install:
- composer install
# Clobber is needed because PCOV normally only works with PHPUnit 8+. Needed only to run test coverage.
- if [ ${TRAVIS_PHP_VERSION:0:3} == "7.3" ]; then pecl install pcov && composer require --dev pcov/clobber && bin/pcov clobber; fi
script:
- if [ ${TRAVIS_PHP_VERSION:0:3} == "7.3" ];
then composer test -- --coverage-clover=coverage.xml && bash <(curl -s https://codecov.io/bash);
else composer test; fi
jobs:
include:
- stage: test
php: 7.2
env: DB=mariadb
addons:
mariadb: '10.2'
-
php: 7.3
env: DB=mariadb
addons:
mariadb: '10.2'
-
name: PHPSTAN
script: composer phpstan
-
name: Rector
script: composer rector -- --dry-run --no-progress-bar
-
name: CS Fixer
script: bin/php-cs-fixer fix --config=.php_cs -v --dry-run --using-cache=no --show-progress=dots --diff $(git diff -- '*.php' --name-only --diff-filter=ACMRTUXB "${TRAVIS_COMMIT_RANGE}")
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bit212/mautic_2.git
[email protected]:bit212/mautic_2.git
bit212
mautic_2
mautic_2
staging

搜索帮助