Skip to content

Commit fd355e4

Browse files
authored
Bug fixes pr 1.x (#720)
* Fixing errors caused by missing variable in when clause. * Making testing roles default to live_symlink_dest instead of deploy_path, in case of track file problems. * Updating docs.
1 parent 0036142 commit fd355e4

File tree

14 files changed

+32
-30
lines changed

14 files changed

+32
-30
lines changed

docs/roles/_init.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ lock_file: /tmp/ce-deploy-lock
2323
provision_lock_file: /tmp/ce-provision-lock # must match _init.lock_file in ce-provision
2424
skip_build_path_check: false # by default we're checking if track number matches
2525
keep_builds: 10 # the number of builds to keep in the build history, includes associated databases
26+
build_cleanup_pattern: "{{ project_name }}_{{ build_type }}_build_*" # name pattern of the builds to be checked for cleanup
2627
# Application specific variables.
2728
drupal:
2829
drush_verbose_output: false

docs/roles/tests/tests_behat.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ behat:
1414
verbose: false # set to true for verbose output
1515
fail_builds: true # set to false if you do not want Ansible to stop if Behat tests fail
1616
show_results: true # if `fail_builds: false` then show_results allows us to optionally show Behat test results in the Ansible output
17-
bin: "{{ deploy_path }}/vendor/bin/behat" # location of Behat
17+
bin: "{{ live_symlink_dest }}/vendor/bin/behat" # location of Behat
1818
# List of outputs to create, defaults to 'pretty' to STDOUT
1919
outputs:
2020
- format: pretty # options are pretty, progress or junit
2121
output: std # see docs for more information, supports output filepath or various formats
22-
config_file: "{{ deploy_path }}/tests/behat/behat.yml" # path to config file
23-
working_dir: "{{ deploy_path }}" # path to execute composer from
22+
config_file: "{{ live_symlink_dest }}/tests/behat/behat.yml" # path to config file
23+
working_dir: "{{ live_symlink_dest }}" # path to execute composer from
2424

2525
```
2626

docs/roles/tests/tests_diffy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ diffy:
2727
main_env: dev # name of the 'good' environment to compare against (must be pre-configured in diffy)
2828
test_env: custom # name of the environment to be compared (usually diffy's default 'custom' environment)
2929
test_env_url: "" # set a base URL to use against the diffy 'custom' environment
30-
bin: "{{ deploy_path }}/vendor/bin/diffy" # location of diffy
31-
working_dir: "{{ deploy_path }}" # path to execute composer and related binaries from
30+
bin: "{{ live_symlink_dest }}/vendor/bin/diffy" # location of diffy
31+
working_dir: "{{ live_symlink_dest }}" # path to execute composer and related binaries from
3232
3333
```
3434

docs/roles/tests/tests_phpcs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ See the installation documentation on packagist: https://packagist.org/packages/
6161
phpcs:
6262
install: false # set to true if you want ce-deploy to attempt to composer install PHP CodeSniffer
6363
install_drupal_coder: false # set to true to install the Coder module for Drupal, which provides a Drupal standard for CodeSniffer
64-
bin: "{{ deploy_path }}/vendor/bin/phpcs" # location of phpcs
64+
bin: "{{ live_symlink_dest }}/vendor/bin/phpcs" # location of phpcs
6565
standard: "" # optionally set the path to an installed standard, for example "vendor/drupal/coder/coder_sniffer/Drupal" for the Coder module for Drupal
6666
extensions: "" # set optional extensions, for example for Drupal you could set "php,module,inc,theme,install" - defaults to "php,inc/php,js,css"
6767
test_paths: [] # list of paths to test against
68-
working_dir: "{{ deploy_path }}" # path to execute composer from
68+
working_dir: "{{ live_symlink_dest }}" # path to execute composer from
6969
7070
```
7171

docs/roles/tests/tests_phpunit.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ phpunit:
3232
install: false # set to true if you want ce-deploy to attempt to composer install phpunit
3333
group: unit # comma separated list of group names to run
3434
target: ../modules # directory or file to test, defaults to Drupal's modules directory
35-
bin: "{{ deploy_path }}/vendor/bin/phpunit" # location of phpunit
36-
tests_path: "{{ deploy_path }}/{{ webroot }}/core" # directory containing the PHPUnit 'tests' directory, defaults to Drupal's core directory
37-
working_dir: "{{ deploy_path }}" # path to execute composer from
35+
bin: "{{ live_symlink_dest }}/vendor/bin/phpunit" # location of phpunit
36+
tests_path: "{{ live_symlink_dest }}/{{ webroot }}/core" # directory containing the PHPUnit 'tests' directory, defaults to Drupal's core directory
37+
working_dir: "{{ live_symlink_dest }}" # path to execute composer from
3838

3939
```
4040

roles/_init/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ lock_file: /tmp/ce-deploy-lock
2323
provision_lock_file: /tmp/ce-provision-lock # must match _init.lock_file in ce-provision
2424
skip_build_path_check: false # by default we're checking if track number matches
2525
keep_builds: 10 # the number of builds to keep in the build history, includes associated databases
26+
build_cleanup_pattern: "{{ project_name }}_{{ build_type }}_build_*" # name pattern of the builds to be checked for cleanup
2627
# Application specific variables.
2728
drupal:
2829
drush_verbose_output: false

roles/tests/tests_behat/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ behat:
1414
verbose: false # set to true for verbose output
1515
fail_builds: true # set to false if you do not want Ansible to stop if Behat tests fail
1616
show_results: true # if `fail_builds: false` then show_results allows us to optionally show Behat test results in the Ansible output
17-
bin: "{{ deploy_path }}/vendor/bin/behat" # location of Behat
17+
bin: "{{ live_symlink_dest }}/vendor/bin/behat" # location of Behat
1818
# List of outputs to create, defaults to 'pretty' to STDOUT
1919
outputs:
2020
- format: pretty # options are pretty, progress or junit
2121
output: std # see docs for more information, supports output filepath or various formats
22-
config_file: "{{ deploy_path }}/tests/behat/behat.yml" # path to config file
23-
working_dir: "{{ deploy_path }}" # path to execute composer from
22+
config_file: "{{ live_symlink_dest }}/tests/behat/behat.yml" # path to config file
23+
working_dir: "{{ live_symlink_dest }}" # path to execute composer from
2424

2525
```
2626

roles/tests/tests_behat/defaults/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ behat:
55
verbose: false # set to true for verbose output
66
fail_builds: true # set to false if you do not want Ansible to stop if Behat tests fail
77
show_results: true # if `fail_builds: false` then show_results allows us to optionally show Behat test results in the Ansible output
8-
bin: "{{ deploy_path }}/vendor/bin/behat" # location of Behat
8+
bin: "{{ live_symlink_dest }}/vendor/bin/behat" # location of Behat
99
# List of outputs to create, defaults to 'pretty' to STDOUT
1010
outputs:
1111
- format: pretty # options are pretty, progress or junit
1212
output: std # see docs for more information, supports output filepath or various formats
13-
config_file: "{{ deploy_path }}/tests/behat/behat.yml" # path to config file
14-
working_dir: "{{ deploy_path }}" # path to execute composer from
13+
config_file: "{{ live_symlink_dest }}/tests/behat/behat.yml" # path to config file
14+
working_dir: "{{ live_symlink_dest }}" # path to execute composer from

roles/tests/tests_diffy/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ diffy:
2727
main_env: dev # name of the 'good' environment to compare against (must be pre-configured in diffy)
2828
test_env: custom # name of the environment to be compared (usually diffy's default 'custom' environment)
2929
test_env_url: "" # set a base URL to use against the diffy 'custom' environment
30-
bin: "{{ deploy_path }}/vendor/bin/diffy" # location of diffy
31-
working_dir: "{{ deploy_path }}" # path to execute composer and related binaries from
30+
bin: "{{ live_symlink_dest }}/vendor/bin/diffy" # location of diffy
31+
working_dir: "{{ live_symlink_dest }}" # path to execute composer and related binaries from
3232
3333
```
3434

roles/tests/tests_diffy/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ diffy:
66
main_env: dev # name of the 'good' environment to compare against (must be pre-configured in diffy)
77
test_env: custom # name of the environment to be compared (usually diffy's default 'custom' environment)
88
test_env_url: "" # set a base URL to use against the diffy 'custom' environment
9-
bin: "{{ deploy_path }}/vendor/bin/diffy" # location of diffy
10-
working_dir: "{{ deploy_path }}" # path to execute composer and related binaries from
9+
bin: "{{ live_symlink_dest }}/vendor/bin/diffy" # location of diffy
10+
working_dir: "{{ live_symlink_dest }}" # path to execute composer and related binaries from

0 commit comments

Comments
 (0)