- 1.1 First setup the
ENVvariables under Environment - 1.2 Authorize the project specific Codeship ssh key on the server. (under General)
phpenv local 7.2| fetch('https://www.tweetjs.com/API.aspx', { | |
| body: JSON.stringify({ | |
| Action: 'ListTweetsOnUserTimeline', | |
| ScreenName: 'urre', | |
| }), | |
| method: 'POST', | |
| }) | |
| .then((r) => r.json()) | |
| .then((data) => { | |
| console.log(data) |
| <?php | |
| /* | |
| Plugin Name: Custom RSS Feed for App | |
| Description: A plugin creating a customized rssfeed | |
| Plugin URI: https://urre.me/ | |
| Author: Urban Sandén | |
| Author URI: https://urre.me | |
| */ | |
| // Add dates for rss feed |
| version: 2 | |
| jobs: | |
| build: | |
| working_directory: ~/clone | |
| docker: | |
| - image: circleci/php:7.1-node-browsers | |
| steps: | |
| - checkout |
| version: 2 | |
| jobs: | |
| build: | |
| docker: | |
| - image: circleci/ruby:2.5.0-node | |
| working_directory: ~/repo | |
| steps: | |
| - checkout |
| composer test |
| phpenv local 7.2 | |
| composer install --prefer-source --no-interaction |
| FILE: ...rojects/myproject/myfile.php | |
| ---------------------------------------------------------------------- | |
| FOUND 4 ERRORS AFFECTING 4 LINES | |
| ---------------------------------------------------------------------- | |
| 34 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found | |
| 36 | ERROR | All output should be run through an escaping function | |
| | | (see the Security sections in the WordPress Developer | |
| | | Handbooks), found '$image_src'. | |
| 90 | ERROR | [x] String "Create a Configuration File" does not require | |
| | double quotes; use single quotes instead |
| "scripts": { | |
| "post-install-cmd": "./vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs", | |
| "post-update-cmd" : "./vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs", | |
| "test": [ | |
| "phpcs --report=full --colors -p --standard=web/app/themes/mytheme/codesniffer-ruleset.xml --ignore=*/vendor/*,*/node_modules/* web/app/themes/mytheme/ --extensions=php" | |
| ] | |
| } |
| "scripts": { | |
| "post-install-cmd": "./vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs", | |
| "post-update-cmd" : "./vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs" | |
| } |