You are using Ruby as the language, while using npm to manage your dependencies. I don’t know off hand what version of Node.js and npm your image has, but whatever the case, I’d first try using language: node_js and find a reasonable version that works.
After specifying node language and adding a target version (one from my local machine that successfully runs detox tests), the build errored with the same output
The command "npm install jest-expo" failed and exited with 1 during .
The log says there’s a problem with detox@15.4.1 postinstall script and there’s some helpful output from that script above that. It’s your job to diagnose it. There’s no visible issue on Travis side so far.