Skip to content
This repository was archived by the owner on Apr 20, 2021. It is now read-only.
Merged

Ci #243

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
language: php

sudo: false
addons:
chrome: stable

cache:
directories:
- $HOME/.composer/cache

env:
global:
- DISPLAY=:99.0
- CHROME_DRIVER_VERSION=2.36
- SELENIUM_VERSION=3.6.0
matrix:
- DEPS=high
- DEPS=low
- DEPS=high PROFILE=default
- DEPS=low PROFILE=default
- DEPS=high PROFILE=symfony2
- DEPS=low PROFILE=symfony2

php:
- 5.5
Expand All @@ -18,8 +25,6 @@ php:
- 7.1
- 7.2
- nightly
- hhvm
- hhvm-nightly

matrix:
allow_failures:
Expand All @@ -29,7 +34,6 @@ matrix:
fast_finish: true

before_script:
- export DISPLAY=:99.0 CHROME_DRIVER_VERSION=2.33 SELENIUM_VERSION=3.6.0
- Xvfb $DISPLAY -extension RANDR &> /dev/null &

- wget "https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip"
Expand All @@ -42,9 +46,8 @@ before_script:
- composer install

- test "$DEPS" == "low" || composer update --prefer-lowest
- test "$DEPS" == "high" || composer update atoum/atoum
- test ${TRAVIS_PHP_VERSION:0:1} -lt 7 || composer update atoum/atoum

script:
- ./bin/atoum
- ./bin/behat -fprogress --tags='~@user' --no-interaction
- ./bin/behat -fprogress --tags='~@user' --no-interaction --profile=symfony2
- ./bin/behat -fprogress --tags="~@user&&~@>php${TRAVIS_PHP_VERSION:0:3}" --no-interaction --profile=$PROFILE
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"require": {
"php": ">=5.5",
"behat/behat": "^3.0.13",
"behat/mink-extension": "^2.0",
"behat/mink-extension": "^2.3.1",
"justinrainbow/json-schema": "^5.0",
"symfony/property-access": "^2.3|^3.0|^4.0",
"symfony/http-foundation": "^2.3|^3.0|^4.0",
Expand Down
1 change: 1 addition & 0 deletions tests/features/rest.feature
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Feature: Testing RESTContext
Congratulations, you've correctly set up your apache environment.
"""

@>php5.5
Scenario: Set content headers in POST request
When I add "Content-Type" header equal to "xxx"
When I send a "POST" request to "rest/index.php" with body:
Expand Down