Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Commit

Permalink
Install dependencies before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random committed Apr 26, 2017
1 parent c14253a commit c1c8075
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ env:

before_install: wget https://raw.github.com/splitbrain/dokuwiki-travis/master/travis.sh

install: sh travis.sh
install:
- sh travis.sh
- cd lib/plugins/icalevents && composer install && cd ../../..

before_script:
# Get latest release of PHP_CodeSniffer
Expand All @@ -37,5 +39,6 @@ before_script:

script:
- cd _test && phpunit --stderr --group plugin_icalevents && cd ..
- cd lib/plugins/icalevents && /tmp/phpcs.phar --standard=PHPCompatibility --runtime-set testVersion 5.5-7.0 --ignore=_test/ . && cd ../../..
- cd lib/plugins/icalevents && /tmp/phpcs.phar --standard=PHPCompatibility --runtime-set testVersion 5.3-5.4 --ignore=_test/,syntax-impl.php . && cd ../../..
# Ignore SplitTest.php. It's a false positive; PHPCompatibility does not understand namespaces.
- cd $TRAVIS_BUILD_DIR/lib/plugins/icalevents && /tmp/phpcs.phar --standard=PHPCompatibility --runtime-set testVersion 5.5-7.0 --ignore=_test/,vendor/sabre/uri/tests/SplitTest.php .
- cd $TRAVIS_BUILD_DIR/lib/plugins/icalevents && /tmp/phpcs.phar --standard=PHPCompatibility --runtime-set testVersion 5.3-5.4 --ignore=_test/,syntax-impl.php,vendor/ .

0 comments on commit c1c8075

Please sign in to comment.