Skip to content

Instantly share code, notes, and snippets.

@jk
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save jk/cf6da84a06720aae1fd1 to your computer and use it in GitHub Desktop.

Select an option

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
{
"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"
}
}
#!/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 project_file=@composer.json $POST_URL
@reiz
Copy link
Copy Markdown

reiz commented May 19, 2014

Works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment