Publish failing with Travis CI build
See original GitHub issueHi guys,
I’m trying to publish to Expo automatically in a CI build using Travis, but it’s consistently failing. I’ve tried a whole range of different things, but it always fails with “socket hang up” when trying to build the iOS bundle.
[exp] Making sure project is set up correctly...
\[exp] Warning: Not using the Expo fork of react-native. See https://docs.expo.io/.
[exp] Your project looks good!
[exp] Unable to find an existing exp instance for this directory, starting a new one...
[exp] Warning: Not using the Expo fork of react-native. See https://docs.expo.io/.
[exp] Starting React Native packager...
[exp] Scanning 782 folders for symlinks in /home/travis/build/pharmadata/tonic-app/node_modules (8ms)
[exp] Loading dependency graph.
[exp] Running packager on port 19001.
[exp] Publishing...
[exp] Building iOS bundle
[exp] socket hang up
Building JavaScript bundle [ ] 0%Error: socket hang up
at createHangUpError (_http_client.js:302:15)
at Socket.socketOnEnd (_http_client.js:394:23)
at emitNone (events.js:91:20)
at Socket.emit (events.js:188:7)
at endReadableNT (_stream_readable.js:975:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
Using node v7.10.0 and npm 4.2.0 (but I’ve tried a variety of versions with no difference).
I’m not quite sure how to debug the issue.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Common Build Problems - Travis CI Docs
If your build is failing due to unexpected segmentation faults in the language interpreter, this may be caused by corrupt or invalid caches...
Read more >Travis reports a build success even though the npm publish ...
It all depends on how the script that Travis is running actually looks like. A short answer is that Travis CI does not...
Read more >Why does Travis CI report a build success even though the ...
However, the build reported as passing even though the npm publish failed due to the version already existing. Here's the tail end of...
Read more >Automate Chromatic with Travis CI • Chromatic docs
They will fail if you are not using --exit-zero-on-changes . Once you accept all the changes, re-run the build and the Publish to...
Read more >Publish NPM package using Travis CI | by Terence Tsang
.travis.yml setup for npm release package · Create a “develop” branch and do development on that branch · When things are done, run...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m using CircleCI, not Travis, but I leave this here for the next person… it works, but only if you don’t need docker. 😦
Since inotify limits cannot be raised in the Circle 2.0 docker, I’ve gotten successful builds (and deploys with
exp publish
) by using a machine build (setmachine: true
) inconfig.yml
… and (for my project) installingyarn
as part of the build. I’ve left these changes only on thedeploy
branch.Good luck. It’s an unfortunate limitation in the environment for docker in CircleCI 2.0. Hope they fix it soon.
Hi Isps could you post the jenkins file you used for build and publish expo app