bogdananton / Selenium-Setup

Start your own Selenium test server with Chrome, Firefox and Internet Explorer drivers.
http://seleniumsetup.org
Other
27 stars 6 forks source link

github rate limiter (don't run composer if not necessary) #6

Open serbanghita opened 8 years ago

serbanghita commented 8 years ago

After the install is done, we should not fetch every time the info from GitHub repo.

I think we can limit this by checking for composer.lock presence ...

avangate-integration-tests > setupEnv:

     [echo] Current path: E:\webserver\www\git\avangate.integration.tests/vendor/bogdananton/phpunit-selenium-env
     [echo] [x] "build" folder is E:\webserver\www\git\avangate.integration.tests/build
     [echo] Checking command line curl version ...
curl 7.30.0 (i386-pc-win32) libcurl/7.30.0 OpenSSL/0.9.8{ zlib/1.2.7
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM SPNEGO SSL SSPI libz
     [echo] [x] Java version 1.8.0
     [echo] [x] PHP version 5.4.30
     [echo] [x] PHP cURL version 7.36.0
     [echo] [x] PHP OpenSSL enabled
     [echo] [x] Composer found.
     [echo] [x] "vendor" folder found.
 [composer] executing e:\webserver\bin\php-5.4.30\php.exe E:\webserver\www\git\avangate.integration.tests/build/composer.phar update
Loading composer repositories with package information

Could not fetch https://api.github.com/repos/bogdananton/phpunit-selenium-env/commits/master, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+SERBANG+2015-11-18+1344
to retrieve a token. It will be stored in "C:/Users/serban.ghita/AppData/Roaming/Composer/auth.json" for future use by Composer.
Token (hidden):
Token stored successfully.
serbanghita commented 8 years ago

file_exists && filemtime on composer.lock - per Bogdan