Skip to content

Commit 729379f

Browse files
committed
Update mailchimp-marketing-php to v3.0.2
0 parents  commit 729379f

36 files changed

Lines changed: 45862 additions & 0 deletions

.php_cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
return PhpCsFixer\Config::create()
4+
->setUsingCache(true)
5+
->setRules([
6+
'@PSR2' => true,
7+
'ordered_imports' => true,
8+
'phpdoc_order' => true,
9+
'array_syntax' => [ 'syntax' => 'short' ],
10+
'strict_comparison' => true,
11+
'strict_param' => true,
12+
'no_trailing_whitespace' => false,
13+
'no_trailing_whitespace_in_comment' => false,
14+
'braces' => false,
15+
'single_blank_line_at_eof' => false,
16+
'blank_line_after_namespace' => false,
17+
])
18+
->setFinder(
19+
PhpCsFixer\Finder::create()
20+
->exclude('test')
21+
->exclude('tests')
22+
->in(__DIR__)
23+
);

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: php
2+
sudo: false
3+
php:
4+
- 5.4
5+
- 5.5
6+
- 5.6
7+
- 7.0
8+
- hhvm
9+
before_install: "composer install"
10+
script: "vendor/bin/phpunit"

README.md

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

composer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "mailchimp/marketing",
3+
"version": "3.0.2",
4+
"description": "",
5+
"keywords": [
6+
"swagger",
7+
"php",
8+
"sdk",
9+
"api"
10+
],
11+
"homepage": "http://swagger.io",
12+
"license": "proprietary",
13+
"authors": [
14+
{
15+
"name": "Swagger and contributors",
16+
"homepage": "https://github.com/swagger-api/swagger-codegen"
17+
}
18+
],
19+
"scripts": {
20+
"pre-autoload-dump": "mv ./lib/Configuration.php ./lib/ApiClient.php"
21+
},
22+
"require": {
23+
"php": ">=5.5",
24+
"ext-curl": "*",
25+
"ext-json": "*",
26+
"ext-mbstring": "*",
27+
"guzzlehttp/guzzle": "^6.2"
28+
},
29+
"require-dev": {
30+
"phpunit/phpunit": "^4.8",
31+
"squizlabs/php_codesniffer": "~2.6",
32+
"friendsofphp/php-cs-fixer": "~2.12"
33+
},
34+
"autoload": {
35+
"psr-4": {
36+
"MailchimpMarketing\\" : "lib/"
37+
}
38+
},
39+
"autoload-dev": {
40+
"psr-4": { "MailchimpMarketing\\" : "test/" }
41+
}
42+
}

git_push.sh

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
#!/bin/sh
2+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3+
#
4+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
5+
6+
git_user_id=$1
7+
git_repo_id=$2
8+
release_note=$3
9+
10+
if [ "$git_user_id" = "" ]; then
11+
git_user_id="postlight"
12+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
13+
fi
14+
15+
if [ "$git_repo_id" = "" ]; then
16+
git_repo_id="mailchimp-marketing-php"
17+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
18+
fi
19+
20+
if [ "$release_note" = "" ]; then
21+
release_note="Minor update"
22+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
23+
fi
24+
25+
# Initialize the local directory as a Git repository
26+
git init
27+
28+
# Adds the files in the local repository and stages them for commit.
29+
git add .
30+
31+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
32+
git commit -m "$release_note"
33+
34+
# Sets the new remote
35+
git_remote=`git remote`
36+
if [ "$git_remote" = "" ]; then # git remote not defined
37+
38+
if [ "$GIT_TOKEN" = "" ]; then
39+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
40+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
41+
else
42+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
43+
fi
44+
45+
fi
46+
47+
git pull origin master
48+
49+
# Pushes (Forces) the changes in the local repository up to the remote repository
50+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
51+
git push origin master 2>&1 | grep -v 'To https'
52+

0 commit comments

Comments
 (0)