1. 15 3月, 2018 2 次提交
    • D
      travis: unlink python package before upgrading brew packages · 70713503
      Daniel P. Berrangé 提交于
      The 'brew upgrade' command is pulling in the python2 package which
      promptly fails due to clashing symlinks installed by the new python
      package (which is python3 based):
      
      ==> Pouring python@2-2.7.14_3.sierra.bottle.tar.gz
      Error: The `brew link` step did not complete successfully
      The formula built, but is not symlinked into /usr/local
      Could not symlink bin/2to3-2
      Target /usr/local/bin/2to3-2
      is a symlink belonging to python. You can unlink it:
        brew unlink python
      To force the link and overwrite all conflicting files:
        brew link --overwrite python@2
      To list all files that would be deleted:
        brew link --overwrite --dry-run python@2
      
      By running 'brew unlink python' we can get rid of the python3 links that
      we didn't want in the first place and avoid this error.
      
      This is the working fix for what we previously attempted todo in:
      
        commit c9c9fc90
        Author: Daniel P. Berrangé <berrange@redhat.com>
        Date:   Mon Mar 5 10:13:12 2018 +0000
      
          travis: force install of python2 into $PATH on macOS
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      70713503
    • D
      travis: move macOS before_install tasks into osx matrix entry · b94c9ea5
      Daniel P. Berrangé 提交于
      The list of commands we're running for the before_install task
      is rather large. We have it all on one line because we're
      wrapping it all in a test against TRAVIS_OS_NAME env variable.
      
      By moving it into the osx matrix entry we can remove the need
      for the conditional shell test. This lets us put each command
      on a separate line making the steps clear to understand.
      
      Fortunately the 'before_install' task does not have the crazy
      behaviour whereby travis ignores errors and runs all commands
      regardless, like the 'script' task does. The first command
      failing will cause an immediate stop with error status.
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      b94c9ea5
  2. 08 3月, 2018 1 次提交
  3. 05 3月, 2018 1 次提交
    • D
      travis: force install of python2 into $PATH on macOS · c9c9fc90
      Daniel P. Berrangé 提交于
      The homebrew formula's ignored Python PEP-0394 recommendations and
      changed the plain python binary in /usr/local/bin to point to Python 3
      instead of Python 2. Python 2 is not even installed into a location that
      is in $PATH by default anymore. The homebrew packages print a message
      to stderr claiming to provide a way to fix this
      
      [quote]
        This formula installs a python2 executable to /usr/local/opt/python@2/bin
      
        If you wish to have this formula's python executable in your PATH then add
      
        the following to ~/.bash_profile:
      
          export PATH="/usr/local/opt/python@2/libexec/bin:$PATH"
      [/quote]
      
      When trying to update $PATH are suggested we find out this message is a
      lie and /usr/local/opt/python@2 does not even exist, instead Python
      seems to end up in /usr/local/Cellar/python@2/2.7.14_1
      
      Rather than hardcoding this version specific directory in our travis
      config, we change to run "brew link --force python@2", to make it create
      symlinks in /usr/local/bin for the python2 binary.
      
      The original change triggering this problem was
      
        https://github.com/Homebrew/homebrew-core/pull/24604#issue-171653084
      
      There are countless bug reports against homebrew-core that are closed
      without fixes, so it seems they are determined to ignore the Python
      PEP 0394 recommendations on this.
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      c9c9fc90
  4. 01 3月, 2018 4 次提交
  5. 12 1月, 2018 2 次提交
  6. 05 12月, 2017 2 次提交
  7. 19 9月, 2017 1 次提交
  8. 14 9月, 2017 7 次提交
  9. 06 9月, 2017 2 次提交
  10. 03 8月, 2017 1 次提交
    • D
      docs: drop XHTML 1.0 validation of website · f802c9de
      Daniel P. Berrange 提交于
      The HTML pages are currently validated against an XHTML 1.0 DTD.
      This makes it impossible to take advantage of features that are
      introduced in HTML 5, because they'll fail validation.
      
      There is intentionally no DTD defined for HTML 5, so there's no
      alternative to XHTML 1.0 DTD that we could switch to. The only
      options are to stick with XHTML 1.0 forever, or drop the DTD
      validation, and we pick the latter.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      f802c9de
  11. 25 5月, 2017 1 次提交
    • C
      CI: show the log in case of failure · 1e988b23
      Claudio André 提交于
      Disclose the content of the 'test-suite.log' file (if available) in
      case of failures inside Travis-CI. This is needed to understand what
      happened and to provide hints about the proper fix (if applicable).
      1e988b23
  12. 19 4月, 2017 1 次提交
    • D
      Add travis build configuration · 84490f20
      Daniel P. Berrange 提交于
      This travis configuration tests libvirt builds on 5 platforms that we don't
      exercise in the CentOS CI system.
      
        - Ubuntu Trusty with GCC
        - Ubuntu Trusty with CLang
        - Ubuntu Precise with GCC
        - Ubuntu Precise with CLang
        - OS-X with CLang
      
      NB, syntax-check fails on OS-X with errors like:
      
         /bin/sh: /usr/bin/grep: Argument list too long
      
      Presumably their grep impl isn't as good as the GNU one, so this test
      config skips syntax-check on OS-X for now.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      84490f20