Skip to content

Commit

Permalink
Merge pull request #272 from vccw-team/improve-playbook
Browse files Browse the repository at this point in the history
Improve playbook
  • Loading branch information
miya0001 authored Sep 9, 2017
2 parents 1905c3f + 2cc320a commit dbc1d18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ env:
global:
- VM_DIR=/vagrant
matrix:
- VCCW_ENV='{ "ruby_gems":[], "wp_cli_packages":[] }'
- 'VCCW_ENV=''{ "ruby_gems":[], "wp_cli_packages":[], "lang": "ja", "plugins": [ "simple-map" ], "theme": "twentyfifteen"}'''
- VCCW_ENV='{ "ruby_gems":[], "wp_cli_packages":[], "mailcatcher":false }'
- 'VCCW_ENV=''{ "ruby_gems":[], "wp_cli_packages":[], "lang": "ja", "plugins": [ "simple-map" ], "theme": "twentyfifteen", "mailcatcher":false }'''
before_install:
- bundle install --path vendor/bundle
- "/usr/bin/env bash bin/run-docker.sh"
Expand Down
17 changes: 1 addition & 16 deletions provision/playbooks/wordpress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,26 +124,11 @@
--path={{ path }}
when: vccw.lang == 'ja'

# Check exsist Theme
- name: Run `wp theme is-installed`
command: |
wp theme is-installed {{ vccw.theme }}
--path={{ path }}
register: theme_is_installed
ignore_errors: True
when: vccw.theme != ''

# Install Theme
- name: Run `wp theme install`
command: |
wp theme install {{ vccw.theme }}
--path={{ path }} --activate
when: vccw.theme != '' and theme_is_installed.rc == 1

- name: Run `wp theme activate`
command: |
wp theme activate {{ vccw.theme }}
--path={{ path }}
--path={{ path }} --activate --force
when: vccw.theme != ''

# Import Theme Unit Test Data
Expand Down

0 comments on commit dbc1d18

Please sign in to comment.