2016-08-25 13:49:24 +00:00
|
|
|
language: php
|
|
|
|
|
|
|
|
php:
|
2017-11-05 10:30:34 +00:00
|
|
|
- '7.0'
|
|
|
|
- '7.2'
|
2016-08-25 13:49:24 +00:00
|
|
|
|
2017-11-05 10:54:56 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode9.1
|
|
|
|
language: generic
|
|
|
|
before_install:
|
|
|
|
# Fix ruby error https://github.com/Homebrew/brew/issues/3299
|
|
|
|
- brew update
|
|
|
|
- brew tap homebrew/homebrew-php
|
|
|
|
- brew install php71
|
|
|
|
- brew install homebrew/php/php71-xdebug
|
|
|
|
- curl https://getcomposer.org/installer | php
|
|
|
|
- ln -s "`pwd`/composer.phar" /usr/local/bin/composer
|
|
|
|
|
2017-10-29 20:18:25 +00:00
|
|
|
git:
|
2017-11-05 09:51:33 +00:00
|
|
|
depth: 10
|
2017-10-29 20:18:25 +00:00
|
|
|
submodules: false
|
|
|
|
|
2016-11-29 20:08:54 +00:00
|
|
|
services:
|
2017-10-02 21:11:06 +00:00
|
|
|
- docker
|
2016-11-29 20:08:54 +00:00
|
|
|
|
2017-10-28 20:18:41 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- BUILD_LEADER_ID=1
|
|
|
|
|
2016-10-14 07:08:40 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
2017-10-02 21:11:06 +00:00
|
|
|
- $HOME/.composer/cache
|
2017-10-22 01:39:31 +00:00
|
|
|
- $HOME/.npm
|
2016-10-14 07:08:40 +00:00
|
|
|
|
2016-08-25 13:49:24 +00:00
|
|
|
install:
|
2017-10-29 20:18:25 +00:00
|
|
|
- git submodule update --init --jobs 9
|
2017-10-02 21:11:06 +00:00
|
|
|
- composer install --prefer-dist --no-interaction
|
2016-08-25 13:49:24 +00:00
|
|
|
|
|
|
|
script:
|
2017-10-02 21:11:06 +00:00
|
|
|
- vendor/bin/phpcs -n
|
|
|
|
- vendor/bin/phpunit --coverage-clover=coverage.xml
|
2016-09-06 10:55:05 +00:00
|
|
|
|
|
|
|
after_success:
|
2017-10-02 21:11:06 +00:00
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
2017-10-22 01:39:31 +00:00
|
|
|
- git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
|
|
|
|
- git fetch --tags
|
|
|
|
- nvm install 8 && nvm use 8
|
|
|
|
- npm install
|
|
|
|
- npm run semantic-release
|
|
|
|
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- /^v\d+\.\d+\.\d+$/
|