Last active
August 29, 2015 14:01
-
-
Save jk/cf6da84a06720aae1fd1 to your computer and use it in GitHub Desktop.
Test shell script to update composer.json via POST API call on versioneye.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "require": { | |
| "phpmd/phpmd": "~1", | |
| "squizlabs/php_codesniffer": "dev-master", | |
| "phpunit/phpunit": "~4", | |
| "pdepend/pdepend": "~2@dev", | |
| "phpspec/phpspec": "~2", | |
| "phing/phing": "~2", | |
| "composer/composer": "1.0.0-alpha8" | |
| }, | |
| "config": { | |
| "bin-dir": "bin" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # According to its documentation: | |
| # https://www.versioneye.com/api/#!/projects/POST--version-projects--project_key---format-_post_3 | |
| PROJECT_ID=secret_id | |
| API_KEY=secret_key | |
| POST_URL=https://www.versioneye.com/api/v2/projects/$PROJECT_ID?api_key=$API_KEY | |
| echo "URL: $POST_URL" | |
| curl -XPOST -F [email protected] $POST_URL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works for me.