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

51 lines
1.1 KiB
YAML
Raw Normal View History

2016-08-25 13:49:24 +00:00
language: php
php:
2017-10-02 21:11:06 +00:00
- 7.0
- 7.1
- 7.2
2016-08-25 13:49:24 +00:00
services:
2017-10-02 21:11:06 +00:00
- docker
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
2017-10-30 09:12:54 +00:00
before_install:
- git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
- git fetch --tags
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
2017-10-30 09:12:54 +00:00
- |
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:
2017-10-02 21:11:06 +00:00
- bash <(curl -s https://codecov.io/bash)
2017-10-22 01:39:31 +00:00
- nvm install 8 && nvm use 8
- npm install
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/