The MoQuality Command Line Interface (CLI) makes it easy to upload an app to MoQuality. It's an essential part of making your QA process agile. The CLI tool can be integrated with any CI/CD tools such as Bitrise, Circle CI or Jenkins to upload your latest build to MoQuality.
The MoQuality CLI can be used like this:
export MQ_APIKEY=<api_key> npm install -g @moquality/mq mq upload --project <project_id> ~/path/to/app.apk
You can read more about this on the npm page: https://www.npmjs.com/package/@moquality/mq
You can find your API key under the Profile Menu in "Account". Your
project_id is the identifier you used while creating your project. You can also find it in the "Project Settings" page.
You can install our CLI tool in your pipeline instructions and then set up your API Key so that any command that follows is set up for your account.
To upload your app from your Bitrise workflow add a custom script such as this:
echo "Sending APK to MoQuality" npm install -g @moquality/[email protected] export MQ_APIKEY=<api_key> mq upload --project <project_id> $BITRISE_APK_PATH
You can alternatively modify the upload command to add more information
mq upload --project <project_id> \ --buildNumber $BITRISE_BUILD_NUMBER \ --buildTitle $BITRISE_BUILD_SLUG \ --buildArtifact $BITRISE_PUBLIC_INSTALL_PAGE_URL \ --buildAuthor "$GIT_CLONE_COMMIT_AUTHOR_NAME" \ --buildBranch $BITRISE_GIT_BRANCH \ $BITRISE_APK_PATH
To upload your app from your CircleCI job, you can add a step using shell scripts such as this:
version2.0 jobs build docker imagecircleci/android api-25-node steps checkout run name'Upload app to MoQuality' command npm set prefix=/home/circleci/npm npm install -g @moquality/mq export MQ_APIKEY=<api_key> /home/circleci/npm/bin/mq upload \ --project <project_id> \ <local_server_path>/<app_apk>.apk
Since CircleCI's docker images have
npm installed at
/home/circleci/npm, you will have to use
npm set prefix. This will install the CLI tool at
/home/circleci/npm/bin/mq. Then you can use the
mq command to upload your app. You can also tag this upload with
You can uninstall the CLI using
npm uninstall -g @moquality/mq
Updated a day ago