Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Await and download apps #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mlitwin
Copy link

@mlitwin mlitwin commented May 19, 2018

Re: phonegap-build#3

So I went ahead and worked out a more complete solution polling for build status and then download - I was interested in the problem, and wanted to try out the jest testing framework you are using (which I'm liking, once I figured out that it was configured such that I needed to write the test to pump setTimeout() by hand). I'm not sure if the PR should be to goya/pgb-api or phonegap-build/pgb-api

Here's where I got to - feel free to adopt / reject / mutate or whatever :)

awaitAndDownloadApps returns a promise which polls status for build id,
and when platform builds are complete, downloads them. The promose resolves when all builds are successfully downloaded, and rejects
if an error is encountered along the way (in getStatus polling, an error in the build, or in a download)

mlitwin added 2 commits May 18, 2018 23:07
awaitAndDownloadApps returns a promise which polls status for build id,
and when platform builds are complete, downloads them. The promose resolves when all builds are successfully downloaded, and rejects
if an error is encountered along the way (in getStatus polling, an error in the build, or in a download).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant