2017-11-10 00:57:05 +00:00
|
|
|
|
2016-08-25 13:49:24 +00:00
|
|
|
language: php
|
|
|
|
|
|
|
|
php:
|
2017-11-05 10:30:34 +00:00
|
|
|
- '7.0'
|
2017-11-12 20:40:13 +00:00
|
|
|
- '7.2RC5'
|
2016-08-25 13:49:24 +00:00
|
|
|
|
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
|
|
|
|
|
2017-10-28 20:18:41 +00:00
|
|
|
env:
|
|
|
|
global:
|
2017-11-10 09:16:15 +00:00
|
|
|
- BUILD_LEADER_ID=4
|
2017-10-28 20:18:41 +00:00
|
|
|
|
2016-10-14 07:08:40 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
2017-11-10 02:48:02 +00:00
|
|
|
- $HOME/Library/Caches/Homebrew
|
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-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
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
2017-11-10 00:57:05 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: test
|
|
|
|
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
|
|
|
|
- stage: release
|
2017-11-10 06:01:50 +00:00
|
|
|
php: '7.0'
|
2017-11-10 00:57:05 +00:00
|
|
|
services:
|
|
|
|
- docker
|
2017-11-10 03:07:43 +00:00
|
|
|
install:
|
2017-11-10 00:57:05 +00:00
|
|
|
- git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
|
|
|
|
- git fetch --tags
|
2017-11-10 03:07:43 +00:00
|
|
|
- composer install --prefer-dist --no-interaction
|
2017-11-10 06:01:50 +00:00
|
|
|
- nvm install 8
|
|
|
|
- nvm use 8
|
2017-11-10 00:57:05 +00:00
|
|
|
- npm install
|
2017-11-10 03:07:43 +00:00
|
|
|
script: skip
|
2017-11-10 02:48:02 +00:00
|
|
|
after_success:
|
2017-11-10 00:57:05 +00:00
|
|
|
- npm run semantic-release
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- name: release
|
|
|
|
if: branch = master
|
2017-10-22 01:39:31 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- /^v\d+\.\d+\.\d+$/
|