Skip to content

Commit

Permalink
Use composer only on php 7+ tests on Travis
Browse files Browse the repository at this point in the history
(cherry picked from commit d4172ff)
  • Loading branch information
zerocrates committed Apr 12, 2017
1 parent b819254 commit f06a919
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ before_script:
- sed -i 's/db.dbname = ""/db.dbname = "omeka_test"/' application/tests/config.ini
- sed -i 's/paths.imagemagick = ""/paths.imagemagick = "\/usr\/bin\/"/' application/tests/config.ini

script: composer install && cd application/tests && ../../vendor/bin/phpunit
script:
- if [[ ${TRAVIS_PHP_VERSION:0:1} == "7" ]]; then composer install; fi;
- cd application/tests && if [[ ${TRAVIS_PHP_VERSION:0:1} == "7" ]]; then ../../vendor/bin/phpunit; else phpunit; fi;

0 comments on commit f06a919

Please sign in to comment.