1
0
Fork 0
php-language-server/.travis.yml

63 lines
1.3 KiB
YAML
Raw Normal View History

2016-08-25 13:49:24 +00:00
language: php
php:
2017-11-05 10:30:34 +00:00
- '7.0'
2019-06-19 11:05:31 +00:00
- '7.1'
- '7.2'
2019-06-19 11:05:31 +00:00
- '7.3'
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
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
2018-11-29 08:50:01 +00:00
- pecl install ast-1.0.0
2016-08-25 13:49:24 +00:00
script:
2017-10-02 21:11:06 +00:00
- vendor/bin/phpcs -n
2018-11-29 08:50:01 +00:00
- vendor/bin/phan
- vendor/bin/phpunit --coverage-clover=coverage.xml --colors=always
2017-10-02 21:11:06 +00:00
- 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
2018-04-06 18:07:48 +00:00
- brew install php@7.1
- brew link --force --overwrite php@7.1
- pecl install xdebug-2.6.0
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
- php composer-setup.php
2017-11-10 00:57:05 +00:00
- 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 06:01:50 +00:00
- nvm install 8
- nvm use 8
2017-11-10 00:57:05 +00:00
- npm install
2017-11-22 11:24:24 +00:00
script:
- ./node_modules/.bin/semantic-release
2017-11-10 00:57:05 +00:00
stages:
- test
- name: release
2017-11-15 21:14:08 +00:00
if: branch = master AND type = push AND fork = false
2017-10-22 01:39:31 +00:00
branches:
2017-12-28 23:34:11 +00:00
only:
- master