This repository has been archived by the owner. It is now read-only.
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (35 sloc) 1.37 KB
language: php
matrix:
include:
- php: 7.1
- php: 7.1
env: BLACKFIRE=on
- php: 7.2
fast_finish: true
sudo: false
git:
depth: 1
cache:
- $HOME/.composer/cache/files
- .phpunit
before_install:
- export SYMFONY_PHPUNIT_DIR="$(pwd)/.phpunit"
- echo memory_limit = -1 >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- phpenv config-rm xdebug.ini
- |
if [[ "$BLACKFIRE" = "on" ]]; then
openssl aes-256-cbc -K $encrypted_16ab3ffdcd52_key -iv $encrypted_16ab3ffdcd52_iv -in .blackfire.travis.ini.enc -out ~/.blackfire.ini -d
curl -L https://blackfire.io/api/v1/releases/agent/linux/amd64 | tar zxpf -
chmod 755 agent && ./agent --config=~/.blackfire.ini --socket=unix:///tmp/blackfire.sock &
fi
install:
- composer install
before_script:
- |
if [[ "$BLACKFIRE" = "on" ]]; then
curl -L https://blackfire.io/api/v1/releases/probe/php/linux/amd64/$(phpenv version-name | tr -d '.')-zts | tar zxpf -
echo "extension=$(pwd)/$(ls blackfire-*.so | tr -d '[[:space:]]')" > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/blackfire.ini
echo "blackfire.agent_socket=unix:///tmp/blackfire.sock" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/blackfire.ini
fi
script:
- ./vendor/bin/simple-phpunit