[ruby-cvs:72831] shyouhei:r65731 (trunk): .travis.yml: enable ccache

shyouhei at ruby-lang.org shyouhei at ruby-lang.org
Thu Nov 15 11:25:25 JST 2018


shyouhei	2018-11-15 11:25:25 +0900 (Thu, 15 Nov 2018)

  New Revision: 65731

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65731

  Log:
    .travis.yml: enable ccache
    
    Travis has `cache: ccache` feature so let us enable it.  Also, because
    `config.cache` is generated during the compilation why not cache that
    file for a later use.  [fix GH-2013]
    
    Caveats:
    
    - When something went wrong, cache entries can be deleted from
      https://travis-ci.org/ruby/ruby/caches (requires login).
    
    - See `ccache(1)` manual page for the new environment variables.
    
    - `ccache` thinks two compilations are not identical if they produce
      different diagnostics.  The -fno-diagnostics-color option is to
      prevent such cache missihts only because TTY is present / absent at
      the compilation time.
    
    - In this changeset two "ccache --show-stats" invocations are inserted
      before and after the compilation to measure cache hit rates etc.
      Will revisit their outputs once the cache is warmed up.

  Modified files:
    trunk/.travis.yml


More information about the ruby-cvs mailing list