Permalink
Browse files

Make phpcs build a bit faster.

  • Loading branch information...
1 parent 296473a commit bb5606cb06c2bd7e8de230eb338bc2b77e395cd6 @ADmad ADmad committed Feb 2, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 .travis.yml
View
@@ -19,14 +19,14 @@ matrix:
- PHPCS=1
before_script:
- - sudo locale-gen de_DE
+ - sh -c "if [ '$PHPCS' != '1' ]; then sudo locale-gen de_DE; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test2;'; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test3;'; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE SCHEMA test2;' -U postgres -d cakephp_test; fi"
- sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'CREATE SCHEMA test3;' -U postgres -d cakephp_test; fi"
- - sudo apt-get install lighttpd
+ - sh -c "if [ '$PHPCS' != '1' ]; then sudo apt-get install lighttpd; fi"
- sh -c "if [ '$PHPCS' = '1' ]; then pear channel-discover pear.cakephp.org; fi"
- sh -c "if [ '$PHPCS' = '1' ]; then pear install --alldeps cakephp/CakePHP_CodeSniffer; fi"
- echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

0 comments on commit bb5606c

Please sign in to comment.