mirror of
https://github.com/j0k3r/php-readability.git
synced 2026-09-27 06:26:17 +00:00
Use cache for Travis
And also avoid Github api limit
This commit is contained in:
@@ -17,10 +17,17 @@ matrix:
|
|||||||
# faster builds on new travis setup not using sudo
|
# faster builds on new travis setup not using sudo
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
|
# cache vendor dirs
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- vendor
|
||||||
|
- $HOME/.composer/cache
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- composer self-update
|
- composer self-update
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
|
||||||
# disable TLS for composer because openssl is disabled for PHP 5.3.3 on travis
|
# disable TLS for composer because openssl is disabled for PHP 5.3.3 on travis
|
||||||
# see: https://blog.travis-ci.com/upcoming_ubuntu_11_10_migration/
|
# see: https://blog.travis-ci.com/upcoming_ubuntu_11_10_migration/
|
||||||
- if [[ $TRAVIS_PHP_VERSION = 5.3.3 ]]; then composer config -g -- disable-tls true; fi;
|
- if [[ $TRAVIS_PHP_VERSION = 5.3.3 ]]; then composer config -g -- disable-tls true; fi;
|
||||||
|
|||||||
Reference in New Issue
Block a user