Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

I love Automation

6,738 views

Published on

My first speech in English at WordCamp Tokyo 2015

Published in: Engineering
  • Be the first to comment

I love Automation

  1. 1. I ❤ Automation Takayuki Miyauchi
  2. 2. Travis CI
  3. 3. spacewapuu.com . 62C6 C D G D H 3 6
  4. 4. It is hosted on AWS S3 + Cloudfront.
  5. 5. )6D 12A C D 6 4 2 D 3 6A C D H ? H 2 6C 12A C ! 62D6 2 C ? 6 12A C CD A52D6 D 5 A2 DH 3 2 6C (6A H D ! . 6 424 6C ? 1 5 ?D (-
  6. 6. 5 D C6 2 D 2D 42 H ? D 2 C G D CD ?6 4 4
  7. 7. #!/usr/bin/env bash set -e if [[ "false" != "$TRAVIS_PULL_REQUEST" ]]; then echo "Not deploying pull requests." exit fi if [[ "master" != "$TRAVIS_BRANCH" ]]; then echo "Not on the 'master' branch." exit fi bundle install --path vendor/bundle bundle exec s3_website push --site . > /dev/null 2>&1
  8. 8. WP-CLI
  9. 9. 2 6 H 6 6 C65 GA 4
  10. 10. 6 H C ? 2 A
  11. 11. https://github.com/miya0001/wp-instant-setup
  12. 12. bin/wp core download --path=$WP_PATH --locale=en_US bin/wp core config --dbhost=localhost --... bin/wp core install ... bin/wp rewrite structure "/archives/%post_id%" bin/wp option update blogname "$WP_TITLE" bin/wp option update blogdescription "$WP_DESC" open http://127.0.0.1:$PORT bin/wp server --host=0.0.0.0 --port=$PORT --docroot= $WP_PATH
  13. 13. Infrastructure
  14. 14. describe command("wp --no-color plugin status jetpack" do let(:disable_sudo) { true } its(:exit_status) { should eq 0 } its(:stdout){ should match /Status: Active/ } end Jetpack should be installed
  15. 15. describe command("wp option get permalink_structure") do let(:disable_sudo) { true } its(:exit_status) { should eq 0 } its(:stdout){ should eq "/archives/%post_id%n" } end permalink_structure should be /archives/%post_id%
  16. 16. Thanks!!

×