This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release/9.0.0: (34 commits) prepare release v9.0.0 relaxed dependencies, use latest Ruby versions, appended contributors list print error message in InteractionHandler Edit changelog file for changing some SCM roles from app to all. close #14 change roles from app to all. close #31 update capistrano from 3.8.0 to 3.9.0. Change configuration variable additional_ignore_tables from type string to array. Remove TYPO3 specific configuration. Update changelog Remove feature to extend release path with jenkins prefix Remove include of sshkit dsl Update capistrano to 3.8.0 fix travis ci badge link rubocop 0.50 upgrade Install mysql instead of mysql-connector-c, because mysql-connector-c is broken. Add vagrant 2.0.x support declare target Ruby version in RuboCop configuration updated dependencies Remove the fixed sshkit dependency to version 1.10.0 Updated copyright ...
- Loading branch information
Showing
49 changed files
with
541 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
sudo: false | ||
language: ruby | ||
cache: bundler | ||
rvm: | ||
- 2.2 | ||
- 2.3 | ||
- 2.4 | ||
|
||
before_install: | ||
- gem install bundler --no-document | ||
|
||
script: | ||
- bundle exec rubocop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
|
||
## [9.0.0] | ||
### Summary | ||
|
||
- tasks around MySQL slow log | ||
- add `utils:create_local_temp_directory` task | ||
- support for dkdeploy-test_environment v2.0.0 | ||
- Vagrant 2.0.x support | ||
- rubocop upgrade to 0.50 | ||
- update capistrano to v3.9.0 | ||
- remove jenkins release suffix | ||
- configuration option `additional_ignore_tables` changes from `string` to `array` | ||
- set group permissions for `/var/www` in Chef cookbook (Vagrant) | ||
- set proper gem homepage | ||
- add travis support | ||
- improved code syntax according to RuboCop | ||
- install `mysql` instead of `mysql-connector-c` | ||
- remove sshkit dsl includes | ||
- remove TYPO3 specific configuration | ||
- change some SCM roles from app to all | ||
|
||
## [8.0.1] - 2017-05-15 | ||
### Summary | ||
|
||
- hotfix for GH25: erroneous Capistrano scope | ||
|
||
## [8.0.0] - 2016-06-20 | ||
### Summary | ||
|
||
- first public release | ||
|
||
[Unreleased]: https://github.com/dkdeploy/dkdeploy-core/compare/master...develop | ||
[9.0.0]: https://github.com/dkdeploy/dkdeploy-core/releases/tag/v9.0.0 | ||
[8.0.1]: https://github.com/dkdeploy/dkdeploy-core/releases/tag/v8.0.1 | ||
[8.0.0]: https://github.com/dkdeploy/dkdeploy-core/releases/tag/v8.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# Dkdeploy::Core | ||
![dkdeploy](assets/dkdeploy-logo.png) | ||
|
||
[![Gem Version](https://badge.fury.io/rb/dkdeploy-core.svg)](https://badge.fury.io/rb/dkdeploy-core) | ||
# dkdeploy::core | ||
|
||
[![Build Status](https://travis-ci.org/dkdeploy/dkdeploy-core.svg?branch=develop)](https://travis-ci.org/dkdeploy/dkdeploy-core) | ||
[![Gem Version](https://badge.fury.io/rb/dkdeploy-core.svg)](https://badge.fury.io/rb/dkdeploy-core) [![Inline docs](http://inch-ci.org/github/dkdeploy/dkdeploy-core.svg?branch=develop)](http://inch-ci.org/github/dkdeploy/dkdeploy-core) | ||
|
||
## Description | ||
|
||
|
@@ -10,7 +13,7 @@ This Rubygem `dkdeploy-core` represents the extension of [Capistrano](http://cap | |
|
||
Add this line to your application's `Gemfile` | ||
|
||
gem 'dkdeploy-core', '~> 8.0' | ||
gem 'dkdeploy-core', '~> 9.0' | ||
|
||
and then execute | ||
|
||
|
@@ -61,7 +64,7 @@ The complete list of the dkdeploy constants you find in `/lib/capistrano/dkdeplo | |
|
||
### Prerequisite | ||
|
||
rvm (v1.25.x) with installed Ruby 2.1. | ||
rvm (v1.29.x) with installed Ruby 2.2. | ||
|
||
Add the virtual box alias to your `hosts` file | ||
|
||
|
@@ -76,7 +79,7 @@ Add the virtual box alias to your `hosts` file | |
## Contributing | ||
|
||
1. Install [git flow](https://github.com/nvie/gitflow) | ||
2. Install [Homebrew](http://brew.sh/) and run `brew install mysql-connector-c` | ||
2. Install [Homebrew](http://brew.sh/) and run `brew install mysql` | ||
3. Install [NodeJS](https://nodejs.org) (supported: v0.12.7) via `brew install nodejs` | ||
4. Install [Bower](http://bower.io) (supported: v1.7.9) via `npm install -g [email protected]` | ||
5. If project is not checked out already do git clone `[email protected]:dkdeploy/dkdeploy-core.git` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
config/vm/cookbooks/dkdeploy-core/templates/my_extra_settings.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[mysqld] | ||
# configure mysql to produce log with slow queries | ||
# log-output = /var/log/mysql-default/ | ||
slow_query_log = 1 | ||
# log file - needs to match :mysql_slow_log in deploy.rb of fixture | ||
slow_query_log_file = /var/log/mysql-default/slow-queries.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# coding: utf-8 | ||
lib = File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'dkdeploy/core/version' | ||
|
@@ -7,28 +6,28 @@ Gem::Specification.new do |spec| | |
spec.name = 'dkdeploy-core' | ||
spec.version = Dkdeploy::Core::Version | ||
spec.license = 'MIT' | ||
spec.authors = ['Lars Tode', 'Timo Webler', 'Kieran Hayes', 'Nicolai Reuschling', 'Johannes Goslar', 'Luka Lüdicke'] | ||
spec.email = %w([email protected] [email protected] [email protected] [email protected] [email protected] [email protected]) | ||
spec.authors = ['Timo Webler', 'Nicolai Reuschling'] | ||
spec.email = %w[[email protected] [email protected]] | ||
spec.description = 'dkd basic deployment tasks and strategies' | ||
spec.summary = 'dkd basic deployment tasks and strategies' | ||
spec.homepage = 'https://redmine.dkd.de/projects/dkdeploy/wiki' | ||
spec.homepage = 'https://github.com/dkdeploy/dkdeploy-core' | ||
spec.required_ruby_version = '~> 2.2' | ||
|
||
spec.files = `git ls-files`.split($/) | ||
spec.executables = spec.files.grep(%r{^bin\/}) { |f| File.basename(f) } | ||
spec.test_files = spec.files.grep(%r{^(test|spec|features)\/}) | ||
spec.require_paths = ['lib'] | ||
|
||
spec.add_development_dependency 'bundler', '~> 1.12.5' | ||
spec.add_development_dependency 'rake', '~> 11.2' | ||
spec.add_development_dependency 'rspec', '~> 3.4' | ||
spec.add_development_dependency 'bundler' | ||
spec.add_development_dependency 'rake' | ||
spec.add_development_dependency 'rspec', '~> 3.5' | ||
spec.add_development_dependency 'cucumber', '~> 2.4' | ||
spec.add_development_dependency 'rubocop', '~> 0.40' | ||
spec.add_development_dependency 'rubocop', '~> 0.50.0' | ||
spec.add_development_dependency 'aruba', '~> 0.14.1' | ||
spec.add_development_dependency 'mysql2', '~> 0.3' | ||
spec.add_development_dependency 'pry', '~> 0.10.3' | ||
spec.add_development_dependency 'dkdeploy-test_environment', '~> 1.0' | ||
spec.add_development_dependency 'pry', '~> 0.10' | ||
spec.add_development_dependency 'dkdeploy-test_environment', '~> 2.0' | ||
|
||
spec.add_dependency 'capistrano', '~> 3.5.0' | ||
spec.add_dependency 'sshkit', '= 1.10.0' | ||
spec.add_dependency 'capistrano', '~> 3.9.0' | ||
spec.add_dependency 'highline', '~> 1.7.1' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Feature: Test tasks for namespace 'mysql' | ||
|
||
Background: | ||
Given a test app with the default configuration | ||
And the remote server is cleared | ||
And I want to use the database `dkdeploy_core` | ||
|
||
Scenario: Downloading the MYSQL slow log | ||
When I successfully run `cap dev "db:upload_settings[127.0.0.1,3306,dkdeploy_core,root,ilikerandompasswords,utf8]"` | ||
And I successfully run `cap dev "db:update[temp,dkdeploy_core.sql.gz]"` | ||
And I successfully run `cap dev db:download_content` | ||
And I successfully run `cap dev mysql:download_slow_log` | ||
Then a file named "temp/slow-queries.dev.dkdeploy-core.dev.log" should exist | ||
|
||
Scenario: Downloading the MYSQL slow log analyze file | ||
When I successfully run `cap dev "db:upload_settings[127.0.0.1,3306,dkdeploy_core,root,ilikerandompasswords,utf8]"` | ||
And I successfully run `cap dev "db:update[temp,dkdeploy_core.sql.gz]"` | ||
And I successfully run `cap dev db:download_content` | ||
And I successfully run `cap dev mysql:analyze_download_slow_log` | ||
Then a file named "temp/mysql_slow_log_analyze.dev.dkdeploy-core.dev.log" should exist | ||
|
||
Scenario: Clearing the MySQL slow log file | ||
When I successfully run `cap dev "db:upload_settings[127.0.0.1,3306,dkdeploy_core,root,ilikerandompasswords,utf8]"` | ||
And I successfully run `cap dev "db:update[temp,dkdeploy_core.sql.gz]"` | ||
And I successfully run `cap dev db:download_content` | ||
And I successfully run `cap dev mysql:clear_slow_log` | ||
Then the output should match /has been cleared/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.