Merge branch 'ls/travis-doc-asciidoctor' into maint
authorJunio C Hamano <gitster@pobox.com>
Mon, 5 Jun 2017 00:03:10 +0000 (09:03 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Jun 2017 00:03:10 +0000 (09:03 +0900)
Travis CI gained a task to format the documentation with both
AsciiDoc and AsciiDoctor.

* ls/travis-doc-asciidoctor:
travis-ci: check AsciiDoc/AsciiDoctor stderr output
travis-ci: unset compiler for jobs that do not need one
travis-ci: parallelize documentation build
travis-ci: build documentation with AsciiDoc and Asciidoctor

1  2 
.travis.yml
diff --combined .travis.yml
index 6dd73d1f02bd0a795fc706c82020d459b2cea49e,e5e7c3edd78209467ab9dc7032138db46ded8190..278943d14a244b6b748078ff9ee18a17f58e7b45
@@@ -39,24 -39,9 +39,25 @@@ env
  
  matrix:
    include:
 +    - env: GETTEXT_POISON=YesPlease
 +      os: linux
 +      compiler:
 +      addons:
 +      before_install:
 +    - env: Windows
 +      os: linux
 +      compiler:
 +      addons:
 +      before_install:
 +      before_script:
 +      script:
 +        - >
 +          test "$TRAVIS_REPO_SLUG" != "git/git" ||
 +          ci/run-windows-build.sh $TRAVIS_BRANCH $(git rev-parse HEAD)
 +      after_failure:
      - env: Linux32
        os: linux
+       compiler:
        services:
          - docker
        before_install:
@@@ -66,7 -51,6 +67,7 @@@
          - >
            docker run
            --interactive
 +          --env DEVELOPER
            --env DEFAULT_TEST_TARGET
            --env GIT_PROVE_OPTS
            --env GIT_TEST_OPTS
          # Use the following command to debug the docker build locally:
          # $ docker run -itv "${PWD}:/usr/src/git" --entrypoint /bin/bash daald/ubuntu32:xenial
          # root@container:/# /usr/src/git/ci/run-linux32-build.sh
 +    - env: Static Analysis
 +      os: linux
 +      compiler:
 +      addons:
 +        apt:
 +          packages:
 +          - coccinelle
 +      before_install:
 +      script:
 +        # "before_script" that builds Git is inherited from base job
 +        - make coccicheck
 +      after_failure:
      - env: Documentation
        os: linux
-       compiler: clang
+       compiler:
        addons:
          apt:
            packages:
            - asciidoc
            - xmlto
        before_install:
-       before_script:
+       before_script: gem install asciidoctor
        script: ci/test-documentation.sh
        after_failure:
  
@@@ -139,14 -111,12 +140,14 @@@ before_install
      p4 -V | grep Rev.;
      echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)";
      git-lfs version;
 -    mkdir -p $HOME/travis-cache;
 -    ln -s $HOME/travis-cache/.prove t/.prove;
  
  before_script: make --jobs=2
  
 -script: make --quiet test
 +script:
 +  - >
 +    mkdir -p $HOME/travis-cache;
 +    ln -s $HOME/travis-cache/.prove t/.prove;
 +    make --quiet test;
  
  after_failure:
    - >