Travis: failed build reported as successful
Mojca Miklavec
mojca at macports.org
Sat Jul 1 05:51:12 UTC 2017
On 1 July 2017 at 04:33, Zero King wrote:
> On Fri, Jun 30, 2017 at 10:51:54PM +0200, Mojca Miklavec wrote:
>>
>> Dear Zero King,
>>
>> Why is this build reported as successful?
>>
>> https://travis-ci.org/macports/macports-ports/jobs/248896726
>
> 1. Lint error was ignored. I didn't fix it because "file delete -force"
> errors aren't fixed.
OK.
> 2. `portindex` failed to parse the Portfile but didn't return an error.
> How can I throw an error when `portindex` failed or printed "Failed to
> parse file" while keeping the output in Travis logs (in Bash)?
I tried to figure out where you call (anything that calls) portindex,
but no luck :).
If any command that you ran failed, your program should exit with
non-zero status at the end, but I guess you already know that.
>> Failed to parse file lang/llvm-4.0/Portfile: wrong # args: should be
>> "sha256 action ?file?"
>
>> Also: can it be that we're experiencing troubles due to an unusual
>> $HOME variable?
>
> Does Travis environment have an unusual $HOME?
Reading those logs I had the impression that
/opt/local/var/macports/home might be used, but I'm not sure.
Mojca
More information about the macports-dev
mailing list