Browse Source

Make phpcs build a bit faster.

ADmad 12 years ago
parent
commit
bb5606cb06
1 changed files with 2 additions and 2 deletions
  1. 2 2
      .travis.yml

+ 2 - 2
.travis.yml

@@ -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