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

51 lines
1.1 KiB
YAML

language: php
php:
- 7.0
- 7.1
- 7.2
services:
- docker
env:
global:
- BUILD_LEADER_ID=1
cache:
directories:
- $HOME/.composer/cache
- $HOME/.npm
before_install:
- git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
- git fetch --tags
install:
- composer install --prefer-dist --no-interaction
script:
- vendor/bin/phpcs -n
- vendor/bin/phpunit --coverage-clover=coverage.xml
- |
php Performance.php >> $TRAVIS_BUILD_DIR/benchmark.txt
REMOTE_URL="$(git config --get remote.origin.url)"
cd $TRAVIS_BUILD_DIR/..
git clone --depth 1 --branch master ${REMOTE_URL} "${TRAVIS_REPO_SLUG}-bench"
cd "${TRAVIS_REPO_SLUG}-bench"
git submodule update --init
composer install --prefer-dist --no-interaction
php Performance.php >> $TRAVIS_BUILD_DIR/benchmark.txt
cd $TRAVIS_BUILD_DIR
- cat $TRAVIS_BUILD_DIR/benchmark.txt
after_success:
- bash <(curl -s https://codecov.io/bash)
- nvm install 8 && nvm use 8
- npm install
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/