Skip to content

Commit

Permalink
Change Travis build and Composer lock to track extra dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabker committed Jul 3, 2015
1 parent caa0461 commit c47d015
Show file tree
Hide file tree
Showing 5 changed files with 180 additions and 62 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ services:
- redis-server

before_script:
# - composer update
# Install PHPCS to validate code standards
- composer require squizlabs/php_codesniffer 1.5.6
# Install Cache_Lite for testing
- composer require pear/cache_lite 1.7.16
# Make sure all dev dependencies are installed
- composer install
# Set up databases for testing
- mysql -e 'create database joomla_ut;'
- mysql joomla_ut < tests/unit/schema/mysql.sql
Expand All @@ -34,7 +31,7 @@ before_script:
- sh -c "if [ '$TRAVIS_PHP_VERSION' != '7.0' ]; then phpenv config-add build/travis/phpenv/redis.ini; fi"

script:
- phpunit --configuration travisci-phpunit.xml
- libraries/vendor/bin/phpunit --configuration travisci-phpunit.xml
- sh -c "if [ '$TRAVIS_PHP_VERSION' != '7.0' ]; then libraries/vendor/bin/phpcs --report=full --extensions=php -p --standard=build/phpcs/Joomla .; fi"

branches:
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
},
"require-dev": {
"phpunit/phpunit": "4.1.*",
"phpunit/dbunit": "~1.3"
"phpunit/dbunit": "~1.3",
"squizlabs/php_codesniffer": "~1.5",
"pear/cache_lite": "1.7.16"
}
}
Loading

0 comments on commit c47d015

Please sign in to comment.