dkdeploy-typo3-cms 7.0.0 → 8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +3 -0
- data/.rubocop.yml +8 -0
- data/.travis.yml +3 -2
- data/Berksfile.lock +33 -41
- data/CHANGELOG.md +18 -0
- data/LICENSE +1 -1
- data/README.md +5 -5
- data/Vagrantfile +7 -14
- data/config/vm/cookbooks/dkdeploy-typo3-cms/metadata.rb +3 -3
- data/config/vm/cookbooks/dkdeploy-typo3-cms/recipes/default.rb +3 -3
- data/dkdeploy-typo3-cms.gemspec +10 -8
- data/features/cli.feature +24 -33
- data/features/step_definitions/mysql.rb +6 -4
- data/features/step_definitions/typo3.rb +1 -5
- data/features/support/env.rb +8 -1
- data/features/typo3.feature +38 -1
- data/lib/capistrano/dkdeploy/typo3_cms.rb +60 -3
- data/lib/dkdeploy/typo3/cms/helpers/cli.rb +4 -4
- data/lib/dkdeploy/typo3/cms/helpers/mysql.rb +26 -0
- data/lib/dkdeploy/typo3/cms/tasks/cache.rake +1 -1
- data/lib/dkdeploy/typo3/cms/tasks/caretaker_key_management.rake +1 -1
- data/lib/dkdeploy/typo3/cms/tasks/cli.rake +0 -18
- data/lib/dkdeploy/typo3/cms/tasks/typo3.rake +19 -11
- data/lib/dkdeploy/typo3/cms/version.rb +1 -1
- data/spec/fixtures/application/config/deploy.rb +5 -0
- data/spec/fixtures/application/config/deploy/dev.rb +4 -4
- data/spec/fixtures/application/htdocs/catalog/variable_injection_test.phpsh +2 -0
- data/spec/fixtures/application/htdocs/composer.json +3 -3
- data/spec/fixtures/application/htdocs/composer.lock +1888 -0
- data/spec/fixtures/application/htdocs/typo3conf/LocalConfiguration.php +1 -0
- data/spec/fixtures/capistrano/configuration/additional_configuration_for_server.rb +1 -1
- data/spec/fixtures/capistrano/configuration/cli_test_tasks_variable_injection.rb +5 -0
- data/spec/fixtures/capistrano/configuration/cli_test_tasks_with_path.rb +6 -0
- metadata +65 -18
- data/spec/fixtures/application/htdocs/typo3/cli_dispatch.phpsh +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7defac31faba874ad1097f02cf2efdff64ee38d617731118d8b3b6e7ddc38bfa
|
4
|
+
data.tar.gz: 39178bc80f3b08415018519268cadb83b5e2cab9f0ad3c49034b1b4b29bf3594
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea8c4f80306702cbb608c1d35a59363a6b208adc351b68d39eeaa349b485efb9859dc2f22197559c96a1b70f7574336178df83936a53c72a36ee78a522463941
|
7
|
+
data.tar.gz: 4f7489984fbb4430fe5e92a01339598e69163c12481deee9debbc5004067b5b98e022623e7614f763432317a3b6b4f3aa828e9b3c4ee046e082727284493bd7a
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -5,6 +5,10 @@ AllCops:
|
|
5
5
|
- 'config/**/*'
|
6
6
|
- 'Vagrantfile'
|
7
7
|
- 'vendor/**/*'
|
8
|
+
TargetRubyVersion: 2.2
|
9
|
+
ExtraDetails: true
|
10
|
+
DisplayStyleGuide: true
|
11
|
+
DisplayCopNames: true
|
8
12
|
GlobalVars:
|
9
13
|
AllowedVariables: []
|
10
14
|
MethodLength:
|
@@ -21,3 +25,7 @@ AbcSize:
|
|
21
25
|
Max: 25
|
22
26
|
SpaceAfterComma:
|
23
27
|
Enabled: false
|
28
|
+
Style/FormatStringToken:
|
29
|
+
Enabled: false
|
30
|
+
Metrics/BlockLength:
|
31
|
+
Enabled: false
|
data/.travis.yml
CHANGED
data/Berksfile.lock
CHANGED
@@ -3,64 +3,56 @@ DEPENDENCIES
|
|
3
3
|
path: config/vm/cookbooks/dkdeploy-typo3-cms
|
4
4
|
|
5
5
|
GRAPH
|
6
|
-
apache2 (
|
6
|
+
apache2 (5.0.1)
|
7
7
|
apt (3.0.0)
|
8
|
-
build-essential (
|
9
|
-
mingw (>=
|
8
|
+
build-essential (8.0.3)
|
9
|
+
mingw (>= 1.1)
|
10
10
|
seven_zip (>= 0.0.0)
|
11
|
-
|
12
|
-
chef_handler (1.4.0)
|
13
|
-
compat_resource (12.10.1)
|
11
|
+
compat_resource (12.19.0)
|
14
12
|
database (5.1.2)
|
15
13
|
postgresql (>= 1.0.0)
|
16
14
|
dkdeploy-typo3-cms (1.0.0)
|
17
|
-
apache2 (~>
|
15
|
+
apache2 (~> 5.0.1)
|
18
16
|
apt (~> 3.0)
|
19
17
|
database (~> 5.1)
|
20
|
-
mysql (~>
|
18
|
+
mysql (~> 8.5.1)
|
21
19
|
mysql2_chef_gem (~> 1.0)
|
22
|
-
php (~>
|
23
|
-
|
24
|
-
|
25
|
-
mariadb (
|
20
|
+
php (~> 4.5.0)
|
21
|
+
inifile_chef_gem (0.1.0)
|
22
|
+
build-essential (>= 0.0.0)
|
23
|
+
mariadb (1.5.2)
|
26
24
|
apt (>= 0.0.0)
|
25
|
+
build-essential (>= 0.0.0)
|
26
|
+
selinux_policy (~> 2.0)
|
27
27
|
yum (>= 0.0.0)
|
28
28
|
yum-epel (>= 0.0.0)
|
29
|
-
|
30
|
-
|
29
|
+
yum-scl (>= 0.0.0)
|
30
|
+
mingw (2.0.1)
|
31
31
|
seven_zip (>= 0.0.0)
|
32
|
-
mysql (
|
33
|
-
smf (>= 0.0.0)
|
34
|
-
yum-mysql-community (>= 0.0.0)
|
32
|
+
mysql (8.5.1)
|
35
33
|
mysql2_chef_gem (1.1.0)
|
36
34
|
build-essential (>= 0.0.0)
|
37
35
|
mariadb (>= 0.0.0)
|
38
36
|
mysql (>= 6.0)
|
39
|
-
|
40
|
-
|
41
|
-
php (
|
37
|
+
ohai (5.2.0)
|
38
|
+
openssl (7.1.0)
|
39
|
+
php (4.5.0)
|
42
40
|
build-essential (>= 0.0.0)
|
43
|
-
iis (>= 0.0.0)
|
44
41
|
mysql (>= 6.0.0)
|
45
|
-
windows (>= 1.39.1)
|
46
|
-
xml (>= 0.0.0)
|
47
42
|
yum-epel (>= 0.0.0)
|
48
|
-
postgresql (
|
49
|
-
|
50
|
-
|
51
|
-
openssl (
|
52
|
-
|
53
|
-
|
43
|
+
postgresql (6.1.1)
|
44
|
+
build-essential (>= 2.0.0)
|
45
|
+
compat_resource (>= 12.16.3)
|
46
|
+
openssl (>= 4.0)
|
47
|
+
selinux_policy (2.0.1)
|
48
|
+
compat_resource (>= 12.16.3)
|
49
|
+
seven_zip (2.0.2)
|
54
50
|
windows (>= 1.2.2)
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
yum-epel (0.7.0)
|
64
|
-
yum (>= 3.6.3)
|
65
|
-
yum-mysql-community (0.2.0)
|
66
|
-
yum (>= 3.2)
|
51
|
+
windows (3.2.0)
|
52
|
+
ohai (>= 4.0.0)
|
53
|
+
yum (5.0.1)
|
54
|
+
yum-epel (2.1.2)
|
55
|
+
compat_resource (>= 12.16.3)
|
56
|
+
yum-scl (0.2.0)
|
57
|
+
inifile_chef_gem (>= 0.0.0)
|
58
|
+
yum (>= 0.0.0)
|
data/CHANGELOG.md
CHANGED
@@ -3,10 +3,28 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
5
5
|
|
6
|
+
## [8.0.0] - 2018-02-09
|
7
|
+
### Summary
|
8
|
+
|
9
|
+
- rubocop upgrade to 0.50
|
10
|
+
- ruby upgrade to 2.2
|
11
|
+
- bundler upgrade
|
12
|
+
- rake upgrade
|
13
|
+
- dkdeploy-test_environment upgrade to 2.0
|
14
|
+
- dkdeploy-core upgrade 9.0
|
15
|
+
- dkdeploy-php upgrade 8.0
|
16
|
+
- Add dependencies for `cucumber`, `rubocop`, `aruba` and `mysql2`
|
17
|
+
- upgrade vagrant box to `ubuntu/xenial64`
|
18
|
+
- update TYPO3 8.7
|
19
|
+
- dropped support for TYPO3 7.6
|
20
|
+
- moving deploy tasks from step_definitions/typo3.rb to deploy.rb for the testing
|
21
|
+
- Add TYPO3 specific configuration for assets and database
|
22
|
+
|
6
23
|
## [7.0.0] - 2017-01-16
|
7
24
|
### Summary
|
8
25
|
|
9
26
|
- first public release
|
10
27
|
|
11
28
|
[Unreleased]: https://github.com/dkdeploy/dkdeploy-typo3-cms/compare/master...develop
|
29
|
+
[8.0.0]: https://github.com/dkdeploy/dkdeploy-typo3-cms/releases/tag/v8.0.0
|
12
30
|
[7.0.0]: https://github.com/dkdeploy/dkdeploy-typo3-cms/releases/tag/v7.0.0
|
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c) 2014-
|
1
|
+
Copyright (c) 2014-2018 dkd Internet Service GmbH, Frankfurt am Main (Germany), https://dkd.de
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
4
|
|
data/README.md
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
# Dkdeploy::Typo3::Cms
|
4
4
|
|
5
|
-
[![Build Status](https://
|
6
|
-
[![Gem Version](https://badge.fury.io/rb/dkdeploy-typo3-cms.svg)](https://badge.fury.io/rb/dkdeploy-typo3-cms) [![Inline docs](http://inch-ci.org/github/dkdeploy/dkdeploy-typo3-cms.svg?branch=
|
5
|
+
[![Build Status](https://travis-ci.org/dkdeploy/dkdeploy-typo3-cms.svg?branch=master)](https://travis-ci.org/dkdeploy/dkdeploy-typo3-cms)
|
6
|
+
[![Gem Version](https://badge.fury.io/rb/dkdeploy-typo3-cms.svg)](https://badge.fury.io/rb/dkdeploy-typo3-cms) [![Inline docs](http://inch-ci.org/github/dkdeploy/dkdeploy-typo3-cms.svg?branch=develop)](http://inch-ci.org/github/dkdeploy/dkdeploy-typo3-cms)
|
7
7
|
|
8
8
|
## Description
|
9
9
|
|
@@ -13,7 +13,7 @@ dkdeploy-typo3-cms ruby gem represents the extension of [Capistrano](http://capi
|
|
13
13
|
|
14
14
|
Add this line to your application's `Gemfile`
|
15
15
|
|
16
|
-
gem 'dkdeploy-typo3-cms', '~>
|
16
|
+
gem 'dkdeploy-typo3-cms', '~> 8.0'
|
17
17
|
|
18
18
|
and then execute
|
19
19
|
|
@@ -46,7 +46,7 @@ Certainly you have to adjust `config/deploy.rb` and respective stages and custom
|
|
46
46
|
|
47
47
|
As next you have to append the following line to the `Capfile` in order to make use of dkdeploy extensions in addition to the standard Capistrano tasks:
|
48
48
|
|
49
|
-
require 'capistrano/dkdeploy/
|
49
|
+
require 'capistrano/dkdeploy/typo3_cms'
|
50
50
|
|
51
51
|
To convince yourself, that Capistrano tasks list has benn extended, please run
|
52
52
|
|
@@ -77,7 +77,7 @@ Add the virtual box alias to your `hosts` file
|
|
77
77
|
## Contributing
|
78
78
|
|
79
79
|
1. Install [git flow](https://github.com/nvie/gitflow)
|
80
|
-
2. Install [Homebrew](http://brew.sh/) and run `brew install mysql
|
80
|
+
2. Install [Homebrew](http://brew.sh/) and run `brew install mysql`
|
81
81
|
3. If project is not checked out already do git clone `git@github.com:dkdeploy/dkdeploy-typo3-cms.git`
|
82
82
|
4. Checkout origin develop branch (`git checkout --track -b develop origin/develop`)
|
83
83
|
5. Git flow initialize `git flow init -d`
|
data/Vagrantfile
CHANGED
@@ -5,32 +5,25 @@ unless Vagrant.has_plugin?('vagrant-berkshelf')
|
|
5
5
|
abort
|
6
6
|
end
|
7
7
|
|
8
|
-
|
9
|
-
puts "Please install vagrant plugin vagrant-omnibus first\n"
|
10
|
-
puts " vagrant plugin install vagrant-omnibus\n\n"
|
11
|
-
puts "Exit vagrant\n\n"
|
12
|
-
abort
|
13
|
-
end
|
14
|
-
|
8
|
+
Vagrant.require_version '~> 2.0.0'
|
15
9
|
chef_version = '12.9.41'
|
16
10
|
|
17
|
-
Vagrant.
|
18
|
-
|
19
|
-
Vagrant.configure('2') do |config|
|
11
|
+
Vagrant.configure(2) do |config|
|
20
12
|
domain = 'dkdeploy-typo3-cms.dev'
|
21
13
|
ip_address = '192.168.156.183'
|
22
14
|
|
23
|
-
config.vm.box = 'ubuntu/
|
15
|
+
config.vm.box = 'ubuntu/xenial64'
|
24
16
|
config.vm.box_check_update = false
|
25
|
-
|
26
17
|
config.berkshelf.enabled = true
|
27
|
-
config.omnibus.chef_version = chef_version
|
28
18
|
|
29
19
|
config.vm.define 'dkdeploy-typo3-cms', primary: true do |master_config|
|
30
20
|
master_config.vm.network 'private_network', ip: ip_address
|
21
|
+
|
22
|
+
# Chef settings
|
31
23
|
master_config.vm.provision :chef_solo do |chef|
|
32
|
-
chef.install = false # omnibus does it already
|
33
24
|
chef.version = chef_version
|
25
|
+
chef.install = true
|
26
|
+
chef.channel = 'stable'
|
34
27
|
chef.log_level = :info
|
35
28
|
chef.add_recipe 'dkdeploy-typo3-cms'
|
36
29
|
|
@@ -4,9 +4,9 @@ license 'MIT'
|
|
4
4
|
description 'Project cookbook'
|
5
5
|
version '1.0'
|
6
6
|
|
7
|
-
depends 'mysql', '~>
|
7
|
+
depends 'mysql', '~> 8.5.1'
|
8
8
|
depends 'mysql2_chef_gem', '~> 1.0'
|
9
9
|
depends 'database', '~> 5.1'
|
10
|
-
depends 'apache2', '~>
|
11
|
-
depends 'php', '~>
|
10
|
+
depends 'apache2', '~> 5.0.1'
|
11
|
+
depends 'php', '~> 4.5.0'
|
12
12
|
depends 'apt', '~> 3.0' # version 2.9 is causing dependency issues
|
@@ -15,7 +15,7 @@ end
|
|
15
15
|
group 'www-data' do
|
16
16
|
action :create
|
17
17
|
append true
|
18
|
-
members '
|
18
|
+
members 'ubuntu'
|
19
19
|
end
|
20
20
|
|
21
21
|
# PHP
|
@@ -24,7 +24,7 @@ include_recipe 'php::module_mysql'
|
|
24
24
|
|
25
25
|
# Apache
|
26
26
|
include_recipe 'apache2'
|
27
|
-
include_recipe 'apache2::
|
27
|
+
include_recipe 'apache2::mod_php'
|
28
28
|
|
29
29
|
# install apache2-utils. It is needed for the assets:add_htpasswd task
|
30
30
|
package 'apache2-utils' do
|
@@ -64,7 +64,7 @@ mysql_database 'dkdeploy_typo3_cms' do
|
|
64
64
|
end
|
65
65
|
|
66
66
|
directory '/var/www/' do
|
67
|
-
owner '
|
67
|
+
owner 'ubuntu' # deployment is done by ubuntu user
|
68
68
|
group 'www-data' # apache2 is executed by www-data and needs access to directory
|
69
69
|
mode '0770'
|
70
70
|
action :create
|
data/dkdeploy-typo3-cms.gemspec
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# coding: utf-8
|
2
1
|
lib = File.expand_path('../lib', __FILE__)
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
3
|
require 'dkdeploy/typo3/cms/version'
|
@@ -7,11 +6,11 @@ Gem::Specification.new do |spec|
|
|
7
6
|
spec.name = 'dkdeploy-typo3-cms'
|
8
7
|
spec.version = Dkdeploy::Typo3::Cms::Version
|
9
8
|
spec.authors = ['Kieran Hayes', 'Timo Webler', 'Nicolai Reuschling', 'Luka Lüdicke']
|
10
|
-
spec.email = %w
|
9
|
+
spec.email = %w[kieran.hayes@dkd.de timo.webler@dkd.de nicolai.reuschling@dkd.de luka.luedicke@dkd.de]
|
11
10
|
spec.description = 'dkd TYPO3 deployment tasks and strategies'
|
12
11
|
spec.summary = 'dkd TYPO3 deployment tasks and strategies'
|
13
12
|
spec.homepage = 'https://github.com/dkdeploy/dkdeploy-typo3-cms'
|
14
|
-
spec.required_ruby_version = '~> 2.
|
13
|
+
spec.required_ruby_version = '~> 2.2'
|
15
14
|
spec.license = 'MIT'
|
16
15
|
|
17
16
|
spec.files = `git ls-files`.split($/)
|
@@ -19,11 +18,14 @@ Gem::Specification.new do |spec|
|
|
19
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)\/})
|
20
19
|
spec.require_paths = ['lib']
|
21
20
|
|
22
|
-
spec.add_development_dependency 'bundler'
|
23
|
-
spec.add_development_dependency 'rake'
|
24
|
-
spec.add_development_dependency '
|
25
|
-
spec.add_development_dependency '
|
21
|
+
spec.add_development_dependency 'bundler'
|
22
|
+
spec.add_development_dependency 'rake'
|
23
|
+
spec.add_development_dependency 'cucumber', '~> 2.4'
|
24
|
+
spec.add_development_dependency 'rubocop', '0.50.0'
|
25
|
+
spec.add_development_dependency 'aruba', '~> 0.14.1'
|
26
|
+
spec.add_development_dependency 'mysql2', '~> 0.3'
|
27
|
+
spec.add_development_dependency 'dkdeploy-test_environment', '~> 2.0'
|
26
28
|
|
27
|
-
spec.add_dependency 'dkdeploy-php', '~>
|
29
|
+
spec.add_dependency 'dkdeploy-php', '~> 8.0'
|
28
30
|
spec.add_dependency 'phpass-ruby', '~> 0.1'
|
29
31
|
end
|
data/features/cli.feature
CHANGED
@@ -3,59 +3,50 @@ Feature: Test tasks for namespace 'typo3:cms:cli:run'
|
|
3
3
|
Background:
|
4
4
|
Given a test app with the default configuration
|
5
5
|
And the remote server is cleared
|
6
|
-
And
|
6
|
+
And a successfully deployed TYPO3 application
|
7
7
|
|
8
8
|
Scenario: Running one time
|
9
9
|
And I extend the development capistrano configuration from the fixture file cli_test_tasks.rb
|
10
10
|
When I successfully run `cap dev typo3:cms:cli:break_after_one_run`
|
11
|
-
Then the output should contain "Running cli task for the 1. time"
|
12
|
-
And the output should not contain "Running cli task for the 2. time"
|
13
|
-
And the output should contain "Breaking loop after 1 run because block yields false"
|
11
|
+
Then the output from "cap dev typo3:cms:cli:break_after_one_run" should contain "Running cli task for the 1. time"
|
12
|
+
And the output from "cap dev typo3:cms:cli:break_after_one_run" should not contain "Running cli task for the 2. time"
|
13
|
+
And the output from "cap dev typo3:cms:cli:break_after_one_run" should contain "Breaking loop after 1 run because block yields false"
|
14
14
|
|
15
15
|
Scenario: Running several times
|
16
16
|
And I extend the development capistrano configuration from the fixture file cli_test_tasks.rb
|
17
17
|
When I successfully run `cap dev typo3:cms:cli:break_after_three_runs`
|
18
|
-
Then the output should contain "Running cli task for the 1. time"
|
19
|
-
And the output should contain "Running cli task for the 2. time"
|
20
|
-
And the output should contain "Running cli task for the 3. time"
|
21
|
-
And the output should contain "Maximum number of cli calls reached!"
|
22
|
-
And the output should not contain "Breaking loop after 1 run because block yields false"
|
23
|
-
And the output should not contain "Breaking loop after 2 run because block yields false"
|
24
|
-
And the output should not contain "Breaking loop after 3 run because block yields false"
|
18
|
+
Then the output from "cap dev typo3:cms:cli:break_after_three_runs" should contain "Running cli task for the 1. time"
|
19
|
+
And the output from "cap dev typo3:cms:cli:break_after_three_runs" should contain "Running cli task for the 2. time"
|
20
|
+
And the output from "cap dev typo3:cms:cli:break_after_three_runs" should contain "Running cli task for the 3. time"
|
21
|
+
And the output from "cap dev typo3:cms:cli:break_after_three_runs" should contain "Maximum number of cli calls reached!"
|
22
|
+
And the output from "cap dev typo3:cms:cli:break_after_three_runs" should not contain "Breaking loop after 1 run because block yields false"
|
23
|
+
And the output from "cap dev typo3:cms:cli:break_after_three_runs" should not contain "Breaking loop after 2 run because block yields false"
|
24
|
+
And the output from "cap dev typo3:cms:cli:break_after_three_runs" should not contain "Breaking loop after 3 run because block yields false"
|
25
25
|
|
26
26
|
Scenario: Running one time in release path
|
27
27
|
And I extend the development capistrano configuration from the fixture file cli_break_after_one_run_in_release_path.rb
|
28
28
|
When I successfully run `cap dev deploy`
|
29
|
-
Then the output should contain "Running cli task for the 1. time"
|
30
|
-
And the output should not contain "Running cli task for the 2. time"
|
31
|
-
And the output should contain "Breaking loop after 1 run because block yields false"
|
29
|
+
Then the output from "cap dev deploy" should contain "Running cli task for the 1. time"
|
30
|
+
And the output from "cap dev deploy" should not contain "Running cli task for the 2. time"
|
31
|
+
And the output from "cap dev deploy" should contain "Breaking loop after 1 run because block yields false"
|
32
32
|
|
33
33
|
Scenario: Running several times in release path
|
34
34
|
And I extend the development capistrano configuration from the fixture file cli_break_after_three_runs_in_release_path.rb
|
35
35
|
When I successfully run `cap dev deploy`
|
36
|
-
Then the output should contain "Running cli task for the 1. time"
|
37
|
-
And the output should contain "Running cli task for the 2. time"
|
38
|
-
And the output should contain "Running cli task for the 3. time"
|
39
|
-
And the output should contain "Maximum number of cli calls reached!"
|
40
|
-
And the output should not contain "Breaking loop after 1 run because block yields false"
|
41
|
-
And the output should not contain "Breaking loop after 2 run because block yields false"
|
42
|
-
And the output should not contain "Breaking loop after 3 run because block yields false"
|
36
|
+
Then the output from "cap dev deploy" should contain "Running cli task for the 1. time"
|
37
|
+
And the output from "cap dev deploy" should contain "Running cli task for the 2. time"
|
38
|
+
And the output from "cap dev deploy" should contain "Running cli task for the 3. time"
|
39
|
+
And the output from "cap dev deploy" should contain "Maximum number of cli calls reached!"
|
40
|
+
And the output from "cap dev deploy" should not contain "Breaking loop after 1 run because block yields false"
|
41
|
+
And the output from "cap dev deploy" should not contain "Breaking loop after 2 run because block yields false"
|
42
|
+
And the output from "cap dev deploy" should not contain "Breaking loop after 3 run because block yields false"
|
43
43
|
|
44
44
|
Scenario: Checking injected environment variables
|
45
|
+
And I extend the development capistrano configuration from the fixture file cli_test_tasks_variable_injection.rb
|
45
46
|
When I successfully run `cap dev typo3:cms:cli:run`
|
46
|
-
Then the output should contain "
|
47
|
+
Then the output from "cap dev typo3:cms:cli:run" should contain "CUSTOM_VARIABLE=1"
|
47
48
|
|
48
49
|
Scenario: Checking injected environment variables in release path
|
49
50
|
And I extend the development capistrano configuration from the fixture file cli_test_tasks_with_path.rb
|
50
51
|
When I successfully run `cap dev deploy`
|
51
|
-
|
52
|
-
Then the output should match /.var.www.dkdeploy.releases.\d{4}-\d{2}-\d{2}-\d{2}-\d{2}-\d{2}.typo3.cli_dispatch\.phpsh/
|
53
|
-
And the output should contain "TYPO3_COMPOSER_AUTOLOAD=1"
|
54
|
-
|
55
|
-
Scenario: Checking injected environment variables
|
56
|
-
When I successfully run `cap dev typo3:cms:cli:upload_wrapper`
|
57
|
-
Then the remote file "current_path/typo3_cms_cli_dispatch.sh" should contain exactly:
|
58
|
-
"""
|
59
|
-
#!/usr/bin/env bash
|
60
|
-
TYPO3_COMPOSER_AUTOLOAD='1' TERM='screen-256color' /usr/bin/env php /var/www/dkdeploy/current/typo3/cli_dispatch.phpsh $@
|
61
|
-
"""
|
52
|
+
And the output should contain "CUSTOM_VARIABLE=1"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
Given(/^the TYPO3 table be_users exists$/) do
|
1
|
+
Given(/^the TYPO3 table be_users exists$/) do
|
2
2
|
mysql_client = instantiate_mysql_client @database_name
|
3
3
|
mysql_client.query 'DROP TABLE IF EXISTS be_users;'
|
4
4
|
mysql_client.query "CREATE TABLE be_users (
|
@@ -6,13 +6,15 @@ Given(/^the TYPO3 table be_users exists$/) do # rubocop:disable Metrics/BlockLen
|
|
6
6
|
pid int(11) unsigned DEFAULT '0' NOT NULL,
|
7
7
|
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
|
8
8
|
username varchar(50) DEFAULT '' NOT NULL,
|
9
|
+
description varchar(2000) DEFAULT '' NOT NULL,
|
10
|
+
avatar int(11) unsigned NOT NULL default '0',
|
9
11
|
password varchar(100) DEFAULT '' NOT NULL,
|
10
12
|
admin tinyint(4) unsigned DEFAULT '0' NOT NULL,
|
11
13
|
usergroup varchar(255) DEFAULT '' NOT NULL,
|
12
14
|
disable tinyint(1) unsigned DEFAULT '0' NOT NULL,
|
13
15
|
starttime int(11) unsigned DEFAULT '0' NOT NULL,
|
14
16
|
endtime int(11) unsigned DEFAULT '0' NOT NULL,
|
15
|
-
lang
|
17
|
+
lang varchar(6) DEFAULT '' NOT NULL,
|
16
18
|
email varchar(80) DEFAULT '' NOT NULL,
|
17
19
|
db_mountpoints text,
|
18
20
|
options tinyint(4) unsigned DEFAULT '0' NOT NULL,
|
@@ -21,7 +23,7 @@ Given(/^the TYPO3 table be_users exists$/) do # rubocop:disable Metrics/BlockLen
|
|
21
23
|
realName varchar(80) DEFAULT '' NOT NULL,
|
22
24
|
userMods text,
|
23
25
|
allowed_languages varchar(255) DEFAULT '' NOT NULL,
|
24
|
-
uc
|
26
|
+
uc mediumblob,
|
25
27
|
file_mountpoints text,
|
26
28
|
file_permissions text,
|
27
29
|
workspace_perms tinyint(3) DEFAULT '1' NOT NULL,
|
@@ -34,7 +36,7 @@ Given(/^the TYPO3 table be_users exists$/) do # rubocop:disable Metrics/BlockLen
|
|
34
36
|
usergroup_cached_list text,
|
35
37
|
workspace_id int(11) DEFAULT '0' NOT NULL,
|
36
38
|
workspace_preview tinyint(3) DEFAULT '1' NOT NULL,
|
37
|
-
category_perms
|
39
|
+
category_perms text,
|
38
40
|
PRIMARY KEY (uid),
|
39
41
|
KEY parent (pid),
|
40
42
|
KEY username (username)
|