Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
basz committed Jan 6, 2017
0 parents commit 5b2f6ed
Show file tree
Hide file tree
Showing 20 changed files with 2,510 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.idea
composer.phar

clover.xml
coveralls-upload.json
phpunit.xml
vendor/
7 changes: 7 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2017 Bushbaby Multimedia

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Diawi Uploader

Quick hack to upload your mobile builds to [Diawi](http://diawi.com). A tool for developers to deploy development and in-house applications directly to the devices.

[![Latest Stable Version](https://poser.pugx.org/bushbaby/diawi-uploader/v/stable)](https://packagist.org/packages/bushbaby/diawi-uploader)
[![Total Downloads](https://poser.pugx.org/bushbaby/diawi-uploader/downloads)](https://packagist.org/packages/bushbaby/diawi-uploader)
[![Latest Unstable Version](https://poser.pugx.org/bushbaby/diawi-uploader/v/unstable)](https://packagist.org/packages/bushbaby/diawi-uploader)
[![License](https://poser.pugx.org/bushbaby/diawi-uploader/license)](https://packagist.org/packages/bushbaby/diawi-uploader)
[![Monthly Downloads](https://poser.pugx.org/bushbaby/diawi-uploader/d/monthly)](https://packagist.org/packages/bushbaby/diawi-uploader)
[![Daily Downloads](https://poser.pugx.org/bushbaby/diawi-uploader/d/daily)](https://packagist.org/packages/bushbaby/diawi-uploader)

## Installation

```
composer g require bushbaby/diawi-uploader
```

Installs this globally (usually to ~/.composer) so as long as ~/.composer/bin is on your PATH you'll be able to run it's commands.

## Configuration

You'll need to add a API token from diawi.com to config/autoload/diawi.local.php


## Usage Commands

To upload a file to diawi use this simple command.

```
diawi-uploader upload <path>
```

To poll the processing of a job run the following command. Note that running the upload command will run this command automaticly.

```
diawi-uploader status <job>
```

Once the job has been successfully processed a browser is opened to the page on diawi.com

## Limitations

Currently only opens a final URL such as `https://install.diawi.com/GtYhbDr` on OSX.

Some flies we're killed during development, though not intentionally!
19 changes: 19 additions & 0 deletions bin/diawi-uploader
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env php
<?php

chdir(dirname(__DIR__));

require 'vendor/autoload.php';

use Symfony\Component\Console\Application;

/** @var \Interop\Container\ContainerInterface $container */
$container = require 'config/container.php';
$application = new Application('Application console');

$commands = $container->get('config')['console']['commands'];
foreach ($commands as $command) {
$application->add($container->get($command));
}

$application->run();
43 changes: 43 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "bushbaby/diawi-uploader",
"description": "Uploads your mobile builds to Diawi.com",
"type": "application",
"homepage": "https://github.com/bushbaby/diawi-uploader",
"license": "MIT",
"require": {
"php": "^5.5 || ^7.0",
"roave/security-advisories": "dev-master",
"zendframework/zend-servicemanager": "^2.7.3 || ^3.0",
"symfony/console": "^3.2",
"guzzlehttp/guzzle": "^6.2"
},
"require-dev": {
"phpunit/phpunit": "^4.8",
"squizlabs/php_codesniffer": "^2.3"
},
"autoload": {
"psr-4": {
"App\\": "src/App/"
}
},
"autoload-dev": {
"psr-4": {
"AppTest\\": "test/AppTest/"
}
},
"scripts": {
"check": [
"@cs-check",
"@test"
],
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"serve": "php -S 0.0.0.0:8080 -t public public/index.php",
"test": "phpunit --colors=always",
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
"upload-coverage": "coveralls -v"
},
"bin": [
"bin/diawi-uploader"
]
}
Loading

0 comments on commit 5b2f6ed

Please sign in to comment.