Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add old unit tests base, and get working again #233

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
0210e9f
Move files to the root of the plugin repository
pereirinha Oct 5, 2020
b3b9ec4
Prevent this repo from being uploaded to npm registry
kasparsd Sep 10, 2020
490e08e
Add WP file formatting guide
kasparsd Sep 10, 2020
e5fadfd
Define plugin Composer meta
kasparsd Sep 10, 2020
18d58a8
Define the PHP coding standard checks
kasparsd Sep 10, 2020
7fdf8a3
Reference the correct repo
kasparsd Sep 10, 2020
d656cea
Use spaces for JSON files, too
kasparsd Sep 10, 2020
ff429c0
No, keep tabs for consistency with WP core styleguide
kasparsd Sep 10, 2020
8d08c4c
Add the deploy logic
kasparsd Sep 10, 2020
d71ce6b
Use HTTPS URLs
kasparsd Sep 10, 2020
9af6f78
Update deps
kasparsd Sep 10, 2020
83575c3
Make building and packaging different processes for clarity
kasparsd Sep 10, 2020
0b79318
Mention the location of release include list
kasparsd Sep 10, 2020
7b47454
Consistent formatting
kasparsd Sep 10, 2020
853e801
Remove unused package
kasparsd Sep 10, 2020
03dae67
Define the suggested version of Node for consistent builds
kasparsd Sep 10, 2020
764e4fc
Define basic CI checks
kasparsd Sep 10, 2020
871feb7
Lint PHP files for now
kasparsd Sep 10, 2020
4a3795a
Fix the only WPCS errors
kasparsd Sep 10, 2020
fbc1f76
Don’t ignore the errors since we’ve fixed them all
kasparsd Sep 10, 2020
ff97bf5
Install Composer tooling, too
kasparsd Sep 10, 2020
c93532b
add old unit tests base
DavidCramer Oct 13, 2020
09a9eaa
remove wordpress insall
DavidCramer Oct 13, 2020
4c8df66
update ignores
DavidCramer Oct 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# See https://make.wordpress.org/core/handbook/coding-standards/
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[*.yml]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
43 changes: 42 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,43 @@
*.log
wp-config.php
wp-content/advanced-cache.php
wp-content/backup-db/
wp-content/backups/
wp-content/blogs.dir/
wp-content/cache/
wp-content/upgrade/
wp-content/uploads/
wp-content/mu-plugins/
wp-content/wp-cache-config.php
wp-content/plugins/hello.php

/.htaccess
/license.txt
/readme.html
/sitemap.xml
/sitemap.xml.gz

.DS_Store
/wordpress*

# Grunt
/build/
/node_modules/
npm-debug.log

# Dev
/vendor/
/dev-lib/
phpcs.xml

# Tests
tests/data/
tests/includes/
coverage/html/

# ENV files
.env

# IDE
.vscode
cloudinary-image-management-and-manipulation-in-the-cloud-cdn
wordpress
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12
32 changes: 32 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
dist: xenial

language: php

before_install:
- nvm install
- nvm use

install:
- npm install

jobs:

include:

- php: "5.6"
script:
- npm run lint
- npm run build

- php: "7.4"
script:
- npm run lint
- npm run build

notifications:
email: false

cache:
npm: true
directories:
- "$HOME/.composer/cache"
27 changes: 20 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,34 @@ This Git repository is the development repository, while there's a mirror public

Additional resources are available at:

* [Website](http://cloudinary.com)
* [Documentation](http://cloudinary.com/documentation)
* [Knowledge Base](http://support.cloudinary.com/forums)
* [Website](https://cloudinary.com)
* [Documentation](https://cloudinary.com/documentation)
* [Knowledge Base](https://support.cloudinary.com/forums)

## Support

You can [open an issue through GitHub](https://github.com/cloudinary/cloudinary_wordpress/issues).

Contact us [http://cloudinary.com/contact](http://cloudinary.com/contact)
Contact us [https://cloudinary.com/contact](https://cloudinary.com/contact)

Stay tuned for updates, tips and tutorials: [Blog](http://cloudinary.com/blog), [Twitter](https://twitter.com/cloudinary), [Facebook](http://www.facebook.com/Cloudinary).
Stay tuned for updates, tips and tutorials: [Blog](https://cloudinary.com/blog), [Twitter](https://twitter.com/cloudinary), [Facebook](https://www.facebook.com/Cloudinary).

## Development

## License #######################################################################
### Create a Plugin Release Package

Released under the GPL license.
Run `npm run package` to create the plugin release in the `/build` directory and package it as `cloudinary-image-management-and-manipulation-in-the-cloud-cdn.zip` in the root directory.

Files included in the release package are defined in the `gruntfile.js` under the `copy` task. Be sure to update this list of files and directories when you add new files to the project.

### Deployment to WordPress.org

1. Tag a release from the `master` branch on GitHub.

2. Run `npm run deploy` to deploy the version referenced in the `cloudinary.php` file of the current branch.

3. Run `npm run deploy-assets` to deploy just the WP.org plugin assets such as screenshots, icons and banners.

## License

Released under the GPL license.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

File renamed without changes.
29 changes: 29 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "cloudinary/cloudinary-image-management-and-manipulation-in-the-cloud-cdn",
"homepage": "https://wordpress.org/plugins/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/",
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"require": {},
"require-dev": {
"wp-coding-standards/wpcs": "^2.3",
"automattic/vipwpcs": "^2.2",
"dealerdirect/phpcodesniffer-composer-installer": "^0.6.2",
"phpunit/phpunit": "^5.0",
"roots/wordpress": "^5.0",
"wp-phpunit/wp-phpunit": "^5.0"
},
"config": {
"platform": {
"php": "5.6.20"
}
},
"scripts": {
"lint": [
"phpcs"
],
"lint-fix": [
"phpcbf"
],
"test": "phpunit"
}
}
Loading