Skip to content

Commit 03812c9

Browse files
author
mikefero
committed
Adding a new filter/tag for skipping tests during TravisCI
1 parent c3fcfd6 commit 03812c9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ before_script:
3333
- wget -O ext/run-tests.php https://raw.githubusercontent.com/php/php-src/master/run-tests.php
3434
# Use the BEHAT_EXTRA_OPTIONS to supply options to Behat runs
3535
- BEHAT_EXTRA_OPTIONS=
36-
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.3" ]]; then BEHAT_EXTRA_OPTIONS="${BEHAT_EXTRA_OPTIONS} [email protected]"; fi
37-
- export BEHAT_EXTRA_OPTIONS
36+
# Use the BEHAT_SKIP_TAGS to skip tests on TravisCI
37+
- BEHAT_SKIP_TAGS=~@skip-travisci
38+
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.3" ]]; then BEHAT_SKIP_TAGS="${BEHAT_SKIP_TAGS}&&[email protected]"; fi
39+
- export BEHAT_EXTRA_OPTIONS BEHAT_SKIP_TAGS
3840

3941
script:
4042
- cd ext && make test && cd "$TRAVIS_BUILD_DIR" # .phpt tests
4143
- ./bin/phpunit
42-
- ./bin/behat ${BEHAT_EXTRA_OPTIONS}
44+
- ./bin/behat --tags="${BEHAT_SKIP_TAGS}" ${BEHAT_EXTRA_OPTIONS}

features/sessions/persistent_sessions.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@php-version-5.4
1+
@php-version-5.4 @skip-travisci
22
Feature: Persistent Sessions
33

44
PHP Driver sessions can persist

0 commit comments

Comments
 (0)