Re: [PATCH v1] travis-ci: build documentation
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 25, 2016, 19:03 UTC
- Message-ID
- <xmqq37q9ldd9.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <xmqqh9epmxtj.fsf@gitster.mtv.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 13 quoted lines
> Lars Schneider <larsxschneider@gmail.com> writes: > >>> There also are existing instances of "useless ;" that would want to >>> be cleaned up regardless of portability issues. >> Unfortunately it seems to be required. Travis CI generates a shell script >> out of the yml file and I think they don't respect newlines or something... > > If they squash all the lines into a single long line before > executing, these semicolons do indeed become necessary (we have to > write a logical single line shell script in our Makefiles with ';', > and I'd imagine Travis's scriptlets are done similarly). > > Thanks.
... but the above does not quite explain it. The newlines are mostly honoured as logical end-of-line in existing .travis.yml e.g. we do not see a semicolon before "pushd".
case "${TRAVIS_OS_NAME:-linux}" in
linux)
mkdir --parents custom/p4
pushd custom/p4
...
esac;
echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)";
...everything outside the big "case/esac" seems to have ';' in the current incarnation of the script.
Puzzled...