Enviar pesquisa
Carregar
VCCW - Vagrant based WordPress development environment
•
19 gostaram
•
6,000 visualizações
Takayuki Miyauchi
Seguir
Engenharia
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 56
Baixar agora
Baixar para ler offline
Recomendados
Wocker @WordBench Osaka No.41
Wocker @WordBench Osaka No.41
Kite Koga
Frasco: Jekyll Starter Project
Frasco: Jekyll Starter Project
Kite Koga
Vagrant-Overview
Vagrant-Overview
Crifkin
How To Set a Vagrant Development System
How To Set a Vagrant Development System
Paul Bearne
Multi-provider Vagrant and Chef: AWS, VMware, and more
Multi-provider Vagrant and Chef: AWS, VMware, and more
Chef Software, Inc.
Vagrant
Vagrant
ProfessionalVMware
Introduction to Vagrant
Introduction to Vagrant
Marcelo Pinheiro
Vagrant crash course
Vagrant crash course
Marcus Deglos
Recomendados
Wocker @WordBench Osaka No.41
Wocker @WordBench Osaka No.41
Kite Koga
Frasco: Jekyll Starter Project
Frasco: Jekyll Starter Project
Kite Koga
Vagrant-Overview
Vagrant-Overview
Crifkin
How To Set a Vagrant Development System
How To Set a Vagrant Development System
Paul Bearne
Multi-provider Vagrant and Chef: AWS, VMware, and more
Multi-provider Vagrant and Chef: AWS, VMware, and more
Chef Software, Inc.
Vagrant
Vagrant
ProfessionalVMware
Introduction to Vagrant
Introduction to Vagrant
Marcelo Pinheiro
Vagrant crash course
Vagrant crash course
Marcus Deglos
Web Applications with Eclipse RT and Docker in the Cloud
Web Applications with Eclipse RT and Docker in the Cloud
Markus Knauer
Vagrant presentation
Vagrant presentation
Mahmudur Rahman
Development with Vagrant
Development with Vagrant
John Coggeshall
Vagrant for Virtualized Development
Vagrant for Virtualized Development
Adam Culp
Vagrant
Vagrant
Michael Peacock
GlassFish Embedded API
GlassFish Embedded API
Eduardo Pelegri-Llopart
Devops Boise - Israel Shirk - Pragmatic Migration to Infrastructure As Code
Devops Boise - Israel Shirk - Pragmatic Migration to Infrastructure As Code
Israel Shirk
Using vagrant
Using vagrant
Cuong Huynh
Bower - A package manager for the web
Bower - A package manager for the web
Larry Nung
Deploy Node.js application in Heroku using Eclipse
Deploy Node.js application in Heroku using Eclipse
Jitendra Zaa
Introduction to Express and Grunt
Introduction to Express and Grunt
Peter deHaan
Dockerize WordPress on Mac/Windows
Dockerize WordPress on Mac/Windows
Kite Koga
Node.js, Vagrant, Chef, and Mathoid @ Benetech
Node.js, Vagrant, Chef, and Mathoid @ Benetech
Christopher Bumgardner
Node4J: Running Node.js in a JavaWorld
Node4J: Running Node.js in a JavaWorld
Ian Bull
Building (localized) Vagrant boxes with Packer
Building (localized) Vagrant boxes with Packer
Cristovao G. Verstraeten
Vagrant
Vagrant
Akshay Siwal
"Wix Serverless from inside", Mykola Borozdin
"Wix Serverless from inside", Mykola Borozdin
Fwdays
Vagrant
Vagrant
Evans Ye
Vagrant 101 Workshop
Vagrant 101 Workshop
Liora Milbaum
Multiple django applications on a single server with nginx
Multiple django applications on a single server with nginx
roskakori
Vagrant WordCamp Hamilton
Vagrant WordCamp Hamilton
Paul Bearne
Advanced WordPress Tooling: By InstaWP.com
Advanced WordPress Tooling: By InstaWP.com
InstaWP Inc
Mais conteúdo relacionado
Mais procurados
Web Applications with Eclipse RT and Docker in the Cloud
Web Applications with Eclipse RT and Docker in the Cloud
Markus Knauer
Vagrant presentation
Vagrant presentation
Mahmudur Rahman
Development with Vagrant
Development with Vagrant
John Coggeshall
Vagrant for Virtualized Development
Vagrant for Virtualized Development
Adam Culp
Vagrant
Vagrant
Michael Peacock
GlassFish Embedded API
GlassFish Embedded API
Eduardo Pelegri-Llopart
Devops Boise - Israel Shirk - Pragmatic Migration to Infrastructure As Code
Devops Boise - Israel Shirk - Pragmatic Migration to Infrastructure As Code
Israel Shirk
Using vagrant
Using vagrant
Cuong Huynh
Bower - A package manager for the web
Bower - A package manager for the web
Larry Nung
Deploy Node.js application in Heroku using Eclipse
Deploy Node.js application in Heroku using Eclipse
Jitendra Zaa
Introduction to Express and Grunt
Introduction to Express and Grunt
Peter deHaan
Dockerize WordPress on Mac/Windows
Dockerize WordPress on Mac/Windows
Kite Koga
Node.js, Vagrant, Chef, and Mathoid @ Benetech
Node.js, Vagrant, Chef, and Mathoid @ Benetech
Christopher Bumgardner
Node4J: Running Node.js in a JavaWorld
Node4J: Running Node.js in a JavaWorld
Ian Bull
Building (localized) Vagrant boxes with Packer
Building (localized) Vagrant boxes with Packer
Cristovao G. Verstraeten
Vagrant
Vagrant
Akshay Siwal
"Wix Serverless from inside", Mykola Borozdin
"Wix Serverless from inside", Mykola Borozdin
Fwdays
Vagrant
Vagrant
Evans Ye
Vagrant 101 Workshop
Vagrant 101 Workshop
Liora Milbaum
Multiple django applications on a single server with nginx
Multiple django applications on a single server with nginx
roskakori
Mais procurados
(20)
Web Applications with Eclipse RT and Docker in the Cloud
Web Applications with Eclipse RT and Docker in the Cloud
Vagrant presentation
Vagrant presentation
Development with Vagrant
Development with Vagrant
Vagrant for Virtualized Development
Vagrant for Virtualized Development
Vagrant
Vagrant
GlassFish Embedded API
GlassFish Embedded API
Devops Boise - Israel Shirk - Pragmatic Migration to Infrastructure As Code
Devops Boise - Israel Shirk - Pragmatic Migration to Infrastructure As Code
Using vagrant
Using vagrant
Bower - A package manager for the web
Bower - A package manager for the web
Deploy Node.js application in Heroku using Eclipse
Deploy Node.js application in Heroku using Eclipse
Introduction to Express and Grunt
Introduction to Express and Grunt
Dockerize WordPress on Mac/Windows
Dockerize WordPress on Mac/Windows
Node.js, Vagrant, Chef, and Mathoid @ Benetech
Node.js, Vagrant, Chef, and Mathoid @ Benetech
Node4J: Running Node.js in a JavaWorld
Node4J: Running Node.js in a JavaWorld
Building (localized) Vagrant boxes with Packer
Building (localized) Vagrant boxes with Packer
Vagrant
Vagrant
"Wix Serverless from inside", Mykola Borozdin
"Wix Serverless from inside", Mykola Borozdin
Vagrant
Vagrant
Vagrant 101 Workshop
Vagrant 101 Workshop
Multiple django applications on a single server with nginx
Multiple django applications on a single server with nginx
Semelhante a VCCW - Vagrant based WordPress development environment
Vagrant WordCamp Hamilton
Vagrant WordCamp Hamilton
Paul Bearne
Advanced WordPress Tooling: By InstaWP.com
Advanced WordPress Tooling: By InstaWP.com
InstaWP Inc
WordPress Development Environments
WordPress Development Environments
Ohad Raz
WordPress Meetup at HUBBA Thailand
WordPress Meetup at HUBBA Thailand
Takayuki Miyauchi
Vagrant introduction for Developers
Vagrant introduction for Developers
Antons Kranga
Kubernetes Story - Day 3: Deploying and Scaling Applications on OpenShift
Kubernetes Story - Day 3: Deploying and Scaling Applications on OpenShift
Mihai Criveti
Manage WordPress with Awesome using wp cli
Manage WordPress with Awesome using wp cli
GetSource
Take Command of WordPress With WP-CLI
Take Command of WordPress With WP-CLI
Diana Thompson
Continuous Delivery with Maven, Puppet and Tomcat - ApacheCon NA 2013
Continuous Delivery with Maven, Puppet and Tomcat - ApacheCon NA 2013
Carlos Sanchez
High performance WordPress
High performance WordPress
Mikel King
Modern tooling to assist with developing applications on FreeBSD
Modern tooling to assist with developing applications on FreeBSD
Sean Chittenden
A new way to develop with WordPress!
A new way to develop with WordPress!
David Sanchez
The WordPress developer's toolkit
The WordPress developer's toolkit
Ivelina Dimova
Create your very own Development Environment with Vagrant and Packer
Create your very own Development Environment with Vagrant and Packer
frastel
Professional deployment
Professional deployment
Ivelina Dimova
Varying WordPress Development Environment WordCamp Cincinnati 2016
Varying WordPress Development Environment WordCamp Cincinnati 2016
David Brattoli
Automated Infrastructure and Application Management
Automated Infrastructure and Application Management
Clark Everetts
WordCamp Vancouver 2012 - Manage WordPress with Awesome using wp-cli
WordCamp Vancouver 2012 - Manage WordPress with Awesome using wp-cli
GetSource
Automated testing with Drupal
Automated testing with Drupal
Promet Source
Varying WordPress Development Environment WordCamp Columbus 2016
Varying WordPress Development Environment WordCamp Columbus 2016
David Brattoli
Semelhante a VCCW - Vagrant based WordPress development environment
(20)
Vagrant WordCamp Hamilton
Vagrant WordCamp Hamilton
Advanced WordPress Tooling: By InstaWP.com
Advanced WordPress Tooling: By InstaWP.com
WordPress Development Environments
WordPress Development Environments
WordPress Meetup at HUBBA Thailand
WordPress Meetup at HUBBA Thailand
Vagrant introduction for Developers
Vagrant introduction for Developers
Kubernetes Story - Day 3: Deploying and Scaling Applications on OpenShift
Kubernetes Story - Day 3: Deploying and Scaling Applications on OpenShift
Manage WordPress with Awesome using wp cli
Manage WordPress with Awesome using wp cli
Take Command of WordPress With WP-CLI
Take Command of WordPress With WP-CLI
Continuous Delivery with Maven, Puppet and Tomcat - ApacheCon NA 2013
Continuous Delivery with Maven, Puppet and Tomcat - ApacheCon NA 2013
High performance WordPress
High performance WordPress
Modern tooling to assist with developing applications on FreeBSD
Modern tooling to assist with developing applications on FreeBSD
A new way to develop with WordPress!
A new way to develop with WordPress!
The WordPress developer's toolkit
The WordPress developer's toolkit
Create your very own Development Environment with Vagrant and Packer
Create your very own Development Environment with Vagrant and Packer
Professional deployment
Professional deployment
Varying WordPress Development Environment WordCamp Cincinnati 2016
Varying WordPress Development Environment WordCamp Cincinnati 2016
Automated Infrastructure and Application Management
Automated Infrastructure and Application Management
WordCamp Vancouver 2012 - Manage WordPress with Awesome using wp-cli
WordCamp Vancouver 2012 - Manage WordPress with Awesome using wp-cli
Automated testing with Drupal
Automated testing with Drupal
Varying WordPress Development Environment WordCamp Columbus 2016
Varying WordPress Development Environment WordCamp Columbus 2016
Mais de Takayuki Miyauchi
オープンソースによるイノベーションの継続
オープンソースによるイノベーションの継続
Takayuki Miyauchi
I love Automation
I love Automation
Takayuki Miyauchi
え?まだMAMPで消耗してんの?
え?まだMAMPで消耗してんの?
Takayuki Miyauchi
WordPress on HHVM + Hack
WordPress on HHVM + Hack
Takayuki Miyauchi
オープンソース & オープンデータ
オープンソース & オープンデータ
Takayuki Miyauchi
WordPress開発の最新事情
WordPress開発の最新事情
Takayuki Miyauchi
Cybozu Kintone x WordPress
Cybozu Kintone x WordPress
Takayuki Miyauchi
WordPressプラグインを公開しよう!
WordPressプラグインを公開しよう!
Takayuki Miyauchi
JAWS-UG Kansai 特別編 AWSがあるとき。ないとき。
JAWS-UG Kansai 特別編 AWSがあるとき。ないとき。
Takayuki Miyauchi
初心者向けWordPress DB & Performance
初心者向けWordPress DB & Performance
Takayuki Miyauchi
AWS+WordPressでつくるFirefoxアプリ
AWS+WordPressでつくるFirefoxアプリ
Takayuki Miyauchi
Ckan + AWS
Ckan + AWS
Takayuki Miyauchi
BookPress開発チームから見た 電子書籍の世界
BookPress開発チームから見た 電子書籍の世界
Takayuki Miyauchi
WordBench Osaka 春の大翻訳祭り
WordBench Osaka 春の大翻訳祭り
Takayuki Miyauchi
アプリケーションプラットホームとしてのWordPress
アプリケーションプラットホームとしてのWordPress
Takayuki Miyauchi
WordPressで電子書籍
WordPressで電子書籍
Takayuki Miyauchi
信頼性が高くハイパフォーマンスなテーマ開発テクニックでライバルに差をつけろ!
信頼性が高くハイパフォーマンスなテーマ開発テクニックでライバルに差をつけろ!
Takayuki Miyauchi
WP Boosterの裏側
WP Boosterの裏側
Takayuki Miyauchi
PHP-Ninjaの裏側
PHP-Ninjaの裏側
Takayuki Miyauchi
WordPressのお作法
WordPressのお作法
Takayuki Miyauchi
Mais de Takayuki Miyauchi
(20)
オープンソースによるイノベーションの継続
オープンソースによるイノベーションの継続
I love Automation
I love Automation
え?まだMAMPで消耗してんの?
え?まだMAMPで消耗してんの?
WordPress on HHVM + Hack
WordPress on HHVM + Hack
オープンソース & オープンデータ
オープンソース & オープンデータ
WordPress開発の最新事情
WordPress開発の最新事情
Cybozu Kintone x WordPress
Cybozu Kintone x WordPress
WordPressプラグインを公開しよう!
WordPressプラグインを公開しよう!
JAWS-UG Kansai 特別編 AWSがあるとき。ないとき。
JAWS-UG Kansai 特別編 AWSがあるとき。ないとき。
初心者向けWordPress DB & Performance
初心者向けWordPress DB & Performance
AWS+WordPressでつくるFirefoxアプリ
AWS+WordPressでつくるFirefoxアプリ
Ckan + AWS
Ckan + AWS
BookPress開発チームから見た 電子書籍の世界
BookPress開発チームから見た 電子書籍の世界
WordBench Osaka 春の大翻訳祭り
WordBench Osaka 春の大翻訳祭り
アプリケーションプラットホームとしてのWordPress
アプリケーションプラットホームとしてのWordPress
WordPressで電子書籍
WordPressで電子書籍
信頼性が高くハイパフォーマンスなテーマ開発テクニックでライバルに差をつけろ!
信頼性が高くハイパフォーマンスなテーマ開発テクニックでライバルに差をつけろ!
WP Boosterの裏側
WP Boosterの裏側
PHP-Ninjaの裏側
PHP-Ninjaの裏側
WordPressのお作法
WordPressのお作法
Último
Online banking management system project.pdf
Online banking management system project.pdf
Kamal Acharya
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
fenichawla
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
ranjana rawat
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
sanyuktamishra911
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
upamatechverse
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur High Profile
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
upamatechverse
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
Call Girls in Nagpur High Profile Call Girls
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
M Maged Hegazy, LLM, MBA, CCP, P3O
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
Asst.prof M.Gokilavani
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Call Girls in Nagpur High Profile
Extrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
120cr0395
University management System project report..pdf
University management System project report..pdf
Kamal Acharya
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
ranjana rawat
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
slot gacor bisa pakai pulsa
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
ranjana rawat
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
SIVASHANKAR N
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
Prabhanshu Chaturvedi
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
ranjana rawat
Último
(20)
Online banking management system project.pdf
Online banking management system project.pdf
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Extrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
University management System project report..pdf
University management System project report..pdf
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
VCCW - Vagrant based WordPress development environment
1.
VCCWWordPress development environment Takayuki
Miyauchi 2015/05/16 at WordBench Osaka
2.
3.
Summary
4.
Vagrant based development
environment for theme and plugin developer. http://vccw.cc/
5.
28,000+ downloads
6.
50+ Provisions / day
7.
18 contributors Thanks a lot
!!
8.
326 commits
9.
285 ★ Stars
10.
What’s installed
11.
• CentOS 6.5 •
Subversion • Git • jq • Apache 2.2.x • MySQL 5.5.x
12.
• PHP 5.4 •
PHPUnit • Code Sniffer • Composer
13.
• WordPress 3.5+ •
WP-CLI • WordPress i18n Tools • WordPress Coding Standards for PHP_CodeSniffer • WordPress Unit Test Framework
14.
• Node.js • Grunt •
Gulp • Ruby • Bundler • Sass • Wordmove
15.
How to use
16.
1. Install VirtualBox 2.
Install Vagrant 3. Install the vagrant-hostsupdater plugin. (Optional) $ vagrant plugin install vagrant-hostsupdater 4. Download vagrant box $ vagrant box add miya0001/vccw 5. Download the latest .zip from vccw.cc 6. change into a directory $ cd vccw-x.x.x 7. Just run! $ vagrant up
17.
Customizing
18.
vccw-x.x.x/site.yml version: latest lang: ja plugins: -
contact-form-7 - jetpack theme: twentyfifteen See provision/default.yml
19.
~/.vccw/config.yml lang: ja memory: 1024 cpus:
2 You can overwrite default
20.
provision-post.sh #!/usr/bin/env bash set -ex /usr/local/bin/wp
db import /vagrant/backup.sql
21.
Wordmove deployment
22.
• Pulls your
WordPress data from server to VCCW. $ wordmove pull --all • Pushes your WordPress data from VCCW to server. $ wordmove push --all
23.
Staging / Production $
wordmove pull --all -e staging $ wordmove push --all -e production
24.
WP-CLI
25.
Creating a new
plugin. $ vagrant ssh -c "wp scaffold plugin my-plugin --activate" Success: Created /var/www/wordpress/wp-content/plugins/my-plugin Success: Created test files. Success: Plugin 'my-plugin' activated. $ wp scaffold plugin my-plugin --activate
26.
Creating a theme
from _s. $ vagrant ssh -c "wp scaffold _s my-theme --activate" Success: Created theme 'My-theme'. Success: Switched to 'My-theme' theme. $ wp scaffold _s my-theme --activate
27.
Creating a child
theme. $ vagrant ssh -c "wp scaffold child-theme my-child-theme --parent_theme=twentyfifteen --activate" Success: Created /var/www/wordpress/wp-content/themes/my-child- theme Success: Switched to 'My-child-theme' theme. $ wp scaffold child-theme my-child-theme --parent_theme=twentyfifteen --activate
28.
Automated testing
29.
$ vagrant ssh
-c "wp scaffold plugin-tests my-plugin" Success: Created test files. Creating a test files
30.
$ tree www/wordpress/wp-content/plugins/my-plugin/ www/wordpress/wp-content/plugins/my-plugin/ ├──
.travis.yml ├── Gruntfile.js ├── bin │ └── install-wp-tests.sh ├── my-plugin.php ├── package.json ├── phpunit.xml ├── readme.txt └── tests ├── bootstrap.php └── test-sample.php
31.
Write the plugin
tests <?php class SampleTest extends WP_UnitTestCase { function test_sample() { $this->assertEquals( 'Hello Hanako!', do_shortcode( "[hello]Hanako[/hello]" ) ); } }
32.
[vagrant@vccw my-plugin]$ phpunit Installing... ... Configuration
read from /var/www/wordpress/wp-content/ plugins/my-plugin/phpunit.xml . Time: 1.73 seconds, Memory: 12.50Mb OK (1 test, 1 assertion) Run the plugin tests
33.
Simple Map https://github.com/miya0001/simple-map/blob/master/tests/test-simple-map.php
34.
oEmbed Gist https://github.com/miya0001/oembed-gist/blob/master/tests/test-oebmed-gist.php
35.
CI Continuous Integration
36.
37.
38.
39.
Edit the .travis.yml php: -
5.3 - 5.4 - 5.5 - 5.6 env: - WP_VERSION=latest WP_MULTISITE=0 - WP_VERSION=4.1 WP_MULTISITE=0 - WP_VERSION=4.0 WP_MULTISITE=0 - WP_VERSION=3.9 WP_MULTISITE=0 - WP_VERSION=3.8 WP_MULTISITE=0
40.
$ git push
41.
42.
Advanced tips
43.
$ npm install
grunt-init -g $ mkdir ~/.grunt-init $ git clone --recursive git@github.com:vccw-team/grunt-vccw.git ~/.grunt-init/vccw $ mkdir myproject.dev $ grunt-init vccw $ vagrant up grunt-init for VCCW Setup Provision
44.
Running Serverspec tests $
git clone git@github.com:vccw-team/vccw.git $ cd vccw $ bundle install --path vendor/bundle $ bundle exec rake spec Command "wp option get blogdescription" exit_status should eq 0 stdout should eq "Hello VCCW.n" Finished in 13.25 seconds (files took 7.04 seconds to load) 76 examples, 0 failures
45.
Another Vagrant for WordPress
46.
VVV https://github.com/Varying-Vagrant-Vagrants/VVV
47.
Chassis https://github.com/Chassis/Chassis
48.
bedrock-ansible https://github.com/roots/bedrock-ansible
49.
Mercury Vagrant (HGV) https://github.com/wpengine/hgv
50.
vip-quickstart https://github.com/Automattic/vip-quickstart
51.
wordpress-meta-environment https://github.com/iandunn/wordpress-meta-environment
52.
Information
53.
AMIMOTO HHVM is available!!
54.
55.
56.
Thanks!!
Baixar agora