Skip to content

Commit

Permalink
Remove legacy PHP versions from travis
Browse files Browse the repository at this point in the history
  • Loading branch information
jakzal committed May 22, 2017
1 parent 436350d commit 32bc381
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
17 changes: 1 addition & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,15 @@ language: php

matrix:
include:
- php: 5.3
env: deps=low
- php: 5.4
- php: 5.5
- php: 5.6
- php: 7.0
env: deps=low
- php: 7.1
fast_finish: true

install:
- sudo apt-get install nginx
- if [[ -f ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/www.conf.default ]]; then sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/www.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/www.conf; fi
- if [[ -f ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ]]; then sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf; fi
- echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm
- sudo cp -f .travis_nginx.conf /etc/nginx/sites-enabled/default.conf
- sudo sed -e "s?%APP_DIR%?$(pwd)/features/application?g" --in-place /etc/nginx/sites-enabled/default.conf
- sudo service nginx restart

before_script:
- phpenv config-rm xdebug.ini
- if [[ $deps = low ]]; then composer update --prefer-lowest --prefer-stable; else composer install; fi

script:
- ./vendor/bin/phpspec run -f pretty
- ./vendor/bin/behat --profile=ci --format=progress

2 changes: 1 addition & 1 deletion behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ ci:
suites:
default:
contexts:
- PhpServerContext
- BehatRunnerContext
- InjectingPageObjectsContext

0 comments on commit 32bc381

Please sign in to comment.