Negation doesn't work in .travis.yml (also conditionals)

for the company project, i want to use composer oudated to check if the dependencies of my PHP libraries are up to date so I came up with:

! (composer outdated --direct | grep ^)

still nothing :confused:

Few things here,

! is a special character in YAML, and isn’t really following the anchoring YAML guidelines. So in theory you could run:

! (composer outdated --direct | grep ^)

That reduces to a string literal. You can also write a string:

"! (composer outdated --direct | grep ^)"

this worked, thanks!

Good to hear.

Imprint