Commits on Jul 24, 2016
  1. Merge pull request #162 from frerich/deduplicate_cache_hit_code

    Resolved code duplication when handling cache hits
    committed on GitHub Jul 24, 2016
  2. Resolved code duplication when handling cache hits

    The actions taken when executing a cache hit (copying the cache
    artefacts, updating the stats) were duplicated between direct and
    indirect hits. Let's fix that.
    committed Jul 24, 2016
Commits on Jul 22, 2016
  1. Merge pull request #161 from webmaster128/pickle

    Remove cPickle import
    committed on GitHub Jul 22, 2016
  2. @webmaster128

    Remove cPickle import

    This is obsolete since we don't support Python 2 anymore.
    
    "In Python 2, you can speed up your pickle access with cPickle. (In
    Python3, importing pickle will automatically use the accelerated version
    if it is available.)" https://wiki.python.org/moin/UsingPickle
    webmaster128 committed Jul 22, 2016
Commits on Jul 18, 2016
  1. Factoring our license terms to separate LICENSE file

    ...instead, just briefly mention that this is BSD 3-Clause licensed and
    that the exact text of that license can be found in the LICENSE file.
    This shortens the other files a bit. I also added the license to the
    setup.py while I was at it.
    
    As a consequence, both Tim and myself are now copyright holders on the
    test code I think since so far only Simon had the copyright declared but
    with a central LICENSE file we have a central list of contributors. I
    hope Simon is okay with this. :-)
    committed Jul 18, 2016
  2. Mention that this stuff is BSD 3-clause licensed n the README

    Just to clarify any doubts as to what license applies to source files
    like setup.py (or the test code files).
    committed Jul 18, 2016
Commits on Jul 13, 2016
  1. Merge pull request #158 from frerich/drop_python2_support

    Drop python2 support
    committed on GitHub Jul 13, 2016
  2. Adding a test for checking preprocessor failures in non-direct mode

    In non-direct mode, failures during the preprocessor call (e.g. when the
    given source file does not exist) should not change the statistics in
    any way. I first considered whether this could count as a pass-through,
    but for now let's document the status quo.
    committed Jul 13, 2016
  3. Permit comparing PersistentJSONDict and CacheStatistics for equality

    Convenient for testing.
    committed Jul 13, 2016
  4. Work around quirk in current pylint releases

    pylint somehow doesn't notice that 'buffer' is a member of both
    sys.stdout as well as sys.stderr, so it complains - which makes the CI
    break. This was reported at
    
      PyCQA/pylint#1004
    
    In the meanwhile, let's reintroduce the 'printBinary' function and use
    it as a sole place to disable this particular pylint warning.
    committed Jul 13, 2016
  5. Removed unneeded str() calls

    These were only needed to make both Python 2 and Python 3 happy. These
    days, we don't need to care about Python 2 anymore.
    committed Jul 13, 2016
  6. Drop BinaryPrinter class

    Since we assert that Python 3 is available, we can write to the 'buffer'
    objects of the standard output streams. This supposedly has the same
    effect.
    committed Jul 13, 2016
  7. Simplified myExecutablePath() function

    Python 2.x is no longer supported, we don't need this alternate code
    branch anymore.
    committed Jul 13, 2016
  8. Drop a couple of 'future' imports

    Since we now assert that Python 3.3+ is used, we don't need to import
    from future anymore. The future is today!
    committed Jul 13, 2016
  9. Drop tests for Python 2.7

    This Python version is not supported anymore, no need to verify that it
    works.
    committed Jul 13, 2016
  10. Document that Python 3.3+ is required

    Python 2.7 was just too hard to get right for various reasons, and the
    differences in the string types were quite a pain. Let's just drop
    Python 2.x support.
    committed Jul 13, 2016
Commits on Jul 12, 2016
  1. Minor refactoring to processCompileRequest()

    It was confusing to use both 'sys.argv' and 'args' here. Turns out
    that 'args' *is* sys.argv (at least right now), and this function is
    really supposed to operate on its argument for the sake of testability.
    So let's use the argument.
    committed Jul 12, 2016
  2. Merge pull request #156 from webmaster128/trigger-print-stderr-bug

    Fix print stderr bug on preprocessor fail
    committed on GitHub Jul 12, 2016
  3. @webmaster128
  4. @webmaster128
Commits on Jul 11, 2016
  1. @webmaster128
  2. @webmaster128

    Use version instead of help to test cl output

    `cl.exe /?` prints multiple screen pages full of content and requires
    manual scrolling when tests are run from an interactive shell.
    webmaster128 committed Jul 9, 2016
  3. @webmaster128

    Adapt testPipedOutput() to trigger bug in failing precompiler call

    In CLCACHE_NODIRECT mode, the preprocessor output is captured and
    printed by clcache. We expect that the current code does not properly
    use binary mode for this in Python 2.
    webmaster128 committed Jul 9, 2016
  4. Merge pull request #157 from frerich/integrationtest_coverage

    Integrationtest coverage
    committed on GitHub Jul 11, 2016
  5. Collect meaningful integration test coverage data when running via Ap…

    …pVeyor
    
    Setting CLCACHE_CMD to 'coverage' will make the integration tests not
    invoke clcache.py directly but rather via the 'coverage' program which
    generates coverage information.
    committed Jul 11, 2016
  6. Support running integration tests via alternative clcache invocation

    By default, the integration tests will launch clcache via the current
    Python interpreter. The newly introduced 'CLCACHE_CMD' environment
    variable can be used to customize this behaviour such that I can run the
    integration tests via Coverage.py.
    committed Jul 11, 2016
  7. Fix duplication of '[PYTHON_BINARY, CLCACHE_SCRIPT]' in integration t…

    …ests
    
    This not only saves some code, it also prepares a change in which I
    implement an alternative way to run clcache (via Coverage.py).
    committed Jul 11, 2016
Commits on Jul 9, 2016
  1. Merge pull request #144 from webmaster128/optional-filepath

    Optional argument parameter
    committed on GitHub Jul 9, 2016
  2. Merge pull request #153 from gqmelo/fix/piped-output

    Fix/piped output
    committed on GitHub Jul 9, 2016
Commits on Jul 8, 2016
  1. @gqmelo
  2. @webmaster128