From 6f331c6de8b5e16b6f14b53aefac7bb9d0698c22 Mon Sep 17 00:00:00 2001 From: Marc Sallin Date: Sat, 4 Apr 2015 11:53:41 +0200 Subject: [PATCH 01/12] Added .travis.yml --- .travis.yml | 2 ++ SQLite.CodeFirst.sln | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..33f0e7c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,2 @@ +language: csharp +solution: SQLite.CodeFirst.sln \ No newline at end of file diff --git a/SQLite.CodeFirst.sln b/SQLite.CodeFirst.sln index 78a9751..19420c2 100644 --- a/SQLite.CodeFirst.sln +++ b/SQLite.CodeFirst.sln @@ -14,6 +14,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{01B97A .nuget\NuGet.targets = .nuget\NuGet.targets EndProjectSection EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CI", "CI", "{1388F02A-ACBA-4042-A9FB-53046C0E80FD}" + ProjectSection(SolutionItems) = preProject + .travis.yml = .travis.yml + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU From 5142c1a86325f1c8a9c3166341ec76353375f645 Mon Sep 17 00:00:00 2001 From: Marc Sallin Date: Sat, 4 Apr 2015 12:04:55 +0200 Subject: [PATCH 02/12] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index a145425..2e6f2dc 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # SQLite CodeFirst +[![Build status](https://ci.appveyor.com/api/projects/status/oc1miog385h801qe?svg=true)](https://ci.appveyor.com/project/msallin/sqlitecodefirst) + Creates a [SQLite Database](https://sqlite.org/) from Code, using [Entity Framework](https://msdn.microsoft.com/en-us/data/ef.aspx) CodeFirst. This Project ships several `IDbInitializer` which creates a new SQLite Database, based on your model/code. From bf958b0030ba17c835351d719748ae0da3b5f491 Mon Sep 17 00:00:00 2001 From: Marc Sallin Date: Sat, 4 Apr 2015 12:30:15 +0200 Subject: [PATCH 03/12] Added nuspec file. --- SQLite.CodeFirst.sln | 5 ----- SQLite.CodeFirst/SQLite.CodeFirst.csproj | 1 + .../SQLite.CodeFirst.csproj.nuspec | 22 +++++++++++++++++++ 3 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec diff --git a/SQLite.CodeFirst.sln b/SQLite.CodeFirst.sln index 19420c2..78a9751 100644 --- a/SQLite.CodeFirst.sln +++ b/SQLite.CodeFirst.sln @@ -14,11 +14,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{01B97A .nuget\NuGet.targets = .nuget\NuGet.targets EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CI", "CI", "{1388F02A-ACBA-4042-A9FB-53046C0E80FD}" - ProjectSection(SolutionItems) = preProject - .travis.yml = .travis.yml - EndProjectSection -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU diff --git a/SQLite.CodeFirst/SQLite.CodeFirst.csproj b/SQLite.CodeFirst/SQLite.CodeFirst.csproj index 57eeeec..9a28b89 100644 --- a/SQLite.CodeFirst/SQLite.CodeFirst.csproj +++ b/SQLite.CodeFirst/SQLite.CodeFirst.csproj @@ -75,6 +75,7 @@ + diff --git a/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec b/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec new file mode 100644 index 0000000..f02ddd3 --- /dev/null +++ b/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec @@ -0,0 +1,22 @@ + + + + SQLite.CodeFirst + 0.9.0 + Marc Sallin + Marc + https://github.com/msallin/SQLiteCodeFirst/blob/CI_Test/LICENSE + https://github.com/msallin/SQLiteCodeFirst + false + + Creates a SQLite Database from Code, using Entity Framework CodeFirst. + This Project ships several IDbInitializer which creates a new SQLite Database, based on your model/code. + + Summary of changes made in this release of the package. + Copyright 2015 + SQLite EntityFramework EF CodeFirst + + + + + \ No newline at end of file From b9439cb204b38d1ebec61688d5c7ab6f8c083f8a Mon Sep 17 00:00:00 2001 From: Marc Sallin Date: Sat, 4 Apr 2015 12:44:43 +0200 Subject: [PATCH 04/12] NuSpec --- .travis.yml | 2 -- SQLite.CodeFirst/SQLite.CodeFirst.csproj | 1 - .../SQLite.CodeFirst.csproj.nuspec | 21 +++++++++++++------ 3 files changed, 15 insertions(+), 9 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 33f0e7c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,2 +0,0 @@ -language: csharp -solution: SQLite.CodeFirst.sln \ No newline at end of file diff --git a/SQLite.CodeFirst/SQLite.CodeFirst.csproj b/SQLite.CodeFirst/SQLite.CodeFirst.csproj index 9a28b89..b3f30aa 100644 --- a/SQLite.CodeFirst/SQLite.CodeFirst.csproj +++ b/SQLite.CodeFirst/SQLite.CodeFirst.csproj @@ -46,7 +46,6 @@ - diff --git a/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec b/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec index f02ddd3..9fec5a7 100644 --- a/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec +++ b/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec @@ -1,22 +1,31 @@ - - + + SQLite.CodeFirst 0.9.0 Marc Sallin - Marc - https://github.com/msallin/SQLiteCodeFirst/blob/CI_Test/LICENSE + Marc Sallin + https://github.com/msallin/SQLiteCodeFirst/blob/master/LICENSE https://github.com/msallin/SQLiteCodeFirst false Creates a SQLite Database from Code, using Entity Framework CodeFirst. This Project ships several IDbInitializer which creates a new SQLite Database, based on your model/code. - Summary of changes made in this release of the package. + Creates a SQLite Database from Code, using Entity Framework CodeFirst. + Copyright 2015 SQLite EntityFramework EF CodeFirst - + + + + + + + + + \ No newline at end of file From 22aca16a7bb1933466980845e8f12a16e6b2c3eb Mon Sep 17 00:00:00 2001 From: Marc Sallin Date: Sat, 4 Apr 2015 13:35:19 +0200 Subject: [PATCH 05/12] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2e6f2dc..2c7470a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # SQLite CodeFirst -[![Build status](https://ci.appveyor.com/api/projects/status/oc1miog385h801qe?svg=true)](https://ci.appveyor.com/project/msallin/sqlitecodefirst) +**Release Build** [![Build status](https://ci.appveyor.com/api/projects/status/2qavdqctw0ehscm6/branch/master?svg=true)](https://ci.appveyor.com/project/msallin/sqlitecodefirst-nv6vn/branch/master) + +**CI Build** [![Build status](https://ci.appveyor.com/api/projects/status/oc1miog385h801qe?svg=true)](https://ci.appveyor.com/project/msallin/sqlitecodefirst) Creates a [SQLite Database](https://sqlite.org/) from Code, using [Entity Framework](https://msdn.microsoft.com/en-us/data/ef.aspx) CodeFirst. From c642e391f13f9557a36c8b5433cffd024ae18f4d Mon Sep 17 00:00:00 2001 From: Marc Sallin Date: Sat, 4 Apr 2015 13:36:56 +0200 Subject: [PATCH 06/12] Adjusted nuspec file --- SQLite.CodeFirst/Properties/AssemblyInfo.cs | 1 - SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/SQLite.CodeFirst/Properties/AssemblyInfo.cs b/SQLite.CodeFirst/Properties/AssemblyInfo.cs index e2da9ea..6be1933 100644 --- a/SQLite.CodeFirst/Properties/AssemblyInfo.cs +++ b/SQLite.CodeFirst/Properties/AssemblyInfo.cs @@ -1,5 +1,4 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec b/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec index 9fec5a7..de115e1 100644 --- a/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec +++ b/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec @@ -2,7 +2,7 @@ SQLite.CodeFirst - 0.9.0 + $version$ Marc Sallin Marc Sallin https://github.com/msallin/SQLiteCodeFirst/blob/master/LICENSE From 19db7598915f774f4a5497bfa53e535b517c8048 Mon Sep 17 00:00:00 2001 From: Marc Sallin Date: Sat, 4 Apr 2015 17:00:32 +0200 Subject: [PATCH 07/12] Updated assembly infos --- .../Properties/AssemblyInfo.cs | 25 +++--------------- SQLite.CodeFirst/Properties/AssemblyInfo.cs | 26 +++++-------------- 2 files changed, 11 insertions(+), 40 deletions(-) diff --git a/SQLite.CodeFirst.Console/Properties/AssemblyInfo.cs b/SQLite.CodeFirst.Console/Properties/AssemblyInfo.cs index 9d5e230..106f8cb 100644 --- a/SQLite.CodeFirst.Console/Properties/AssemblyInfo.cs +++ b/SQLite.CodeFirst.Console/Properties/AssemblyInfo.cs @@ -1,18 +1,10 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("SQLite.CodeFirst.Console")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] +[assembly: AssemblyTitle("SQLite.CodeFirst")] +[assembly: AssemblyDescription("A console application which demonstrates how to use QLite.CodeFirst.")] [assembly: AssemblyProduct("SQLite.CodeFirst")] -[assembly: AssemblyCopyright("Copyright © 2015")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] +[assembly: AssemblyCopyright("Copyright © Marc Sallin")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from @@ -22,15 +14,6 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("945f6a68-1bcd-47ff-a551-a2820b88ff8c")] -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyInformationalVersion("1.0.0.0")] diff --git a/SQLite.CodeFirst/Properties/AssemblyInfo.cs b/SQLite.CodeFirst/Properties/AssemblyInfo.cs index 6be1933..14c036b 100644 --- a/SQLite.CodeFirst/Properties/AssemblyInfo.cs +++ b/SQLite.CodeFirst/Properties/AssemblyInfo.cs @@ -1,17 +1,13 @@ using System.Reflection; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. [assembly: AssemblyTitle("SQLite.CodeFirst")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] +[assembly: AssemblyDescription( + "Creates a SQLite Database from Code, using Entity Framework CodeFirst. " + + "This Project ships several IDbInitializer which creates " + + "a new SQLite Database, based on your model/code.")] [assembly: AssemblyProduct("SQLite.CodeFirst")] -[assembly: AssemblyCopyright("Copyright © 2015")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] +[assembly: AssemblyCopyright("Copyright © Marc Sallin")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from @@ -21,15 +17,7 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("46603902-448a-4c50-87ec-09cb792b740f")] -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] +// Will be replaced by the build server [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyInformationalVersion("1.0.0.0")] From ac03fbf1cadeba4d9f32e0789cf3a71e586ae11c Mon Sep 17 00:00:00 2001 From: Marc Sallin Date: Sat, 4 Apr 2015 17:00:48 +0200 Subject: [PATCH 08/12] Update copyright informations from nuspec-file --- SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec b/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec index de115e1..a1bc95a 100644 --- a/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec +++ b/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec @@ -14,7 +14,7 @@ Creates a SQLite Database from Code, using Entity Framework CodeFirst. - Copyright 2015 + Copyright (C) Marc Sallin SQLite EntityFramework EF CodeFirst From 486604d388580cfe83fdf58cfdf820fbea6f22c7 Mon Sep 17 00:00:00 2001 From: Marc Sallin Date: Sat, 4 Apr 2015 17:42:28 +0200 Subject: [PATCH 09/12] Added release_appveyor --- SQLite.CodeFirst.sln | 5 +++++ release_appveyor.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 release_appveyor.yml diff --git a/SQLite.CodeFirst.sln b/SQLite.CodeFirst.sln index 78a9751..b0b52ac 100644 --- a/SQLite.CodeFirst.sln +++ b/SQLite.CodeFirst.sln @@ -14,6 +14,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{01B97A .nuget\NuGet.targets = .nuget\NuGet.targets EndProjectSection EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{7031BD3C-AE76-43CD-91B6-B6BCD823968C}" + ProjectSection(SolutionItems) = preProject + release_appveyor.yml = release_appveyor.yml + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU diff --git a/release_appveyor.yml b/release_appveyor.yml new file mode 100644 index 0000000..65e618b --- /dev/null +++ b/release_appveyor.yml @@ -0,0 +1,42 @@ +version: Release_{branch}_0.9.{build}.0 +branches: + only: + - master +skip_tags: true +configuration: Release +platform: Any CPU +assembly_info: + patch: true + file: '**\AssemblyInfo.*' + assembly_version: 0.9.{build}.0 + assembly_file_version: 0.9.{build}.0 + assembly_informational_version: 0.9.{build}.0 +build: + publish_nuget: true + publish_nuget_symbols: true + verbosity: normal +artifacts: +- path: SQLite.CodeFirst\bin\*\SQLite.CodeFirst.dll + name: SQLiteCodeFirst +deploy: +- provider: NuGet + api_key: + secure: QmbFnerlfTAFUZpnaPgVDywMH4fF8rVakefmqvhu3qm9SpuDlLGB9S4HwtdE3Nep + on: + branch: master +- provider: GitHub + tag: v$(appveyor_build_version) + release: v$(appveyor_build_version) + description: https://www.nuget.org/packages/SQLite.CodeFirst/ + auth_token: + secure: e3cqaFy9PzI9TAdZJBIDy97Bfbwa7j0EXe2yw7Ev9aJXK0Q+3mnULqb1VU4P7BWR + artifact: SQLiteCodeFirst + draft: true + on: + branch: master +notifications: +- provider: Webhook + url: https://zapier.com/hooks/catch/b3cbz0/ + on_build_success: true + on_build_failure: true + on_build_status_changed: false \ No newline at end of file From ebd951dade4183569c6525d7a34605a5adc6d7db Mon Sep 17 00:00:00 2001 From: Marc Sallin Date: Sat, 4 Apr 2015 18:03:03 +0200 Subject: [PATCH 10/12] Skip build on none functional changes. --- release_appveyor.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/release_appveyor.yml b/release_appveyor.yml index 65e618b..b1d84ce 100644 --- a/release_appveyor.yml +++ b/release_appveyor.yml @@ -1,8 +1,14 @@ +# See http://www.appveyor.com/docs/appveyor-yml for many more options + version: Release_{branch}_0.9.{build}.0 branches: only: - master skip_tags: true +# Skip on updates to the readme. +# We can force this by adding [skip ci] or [ci skip] anywhere in commit message +skip_commits: + message: /Update (README.md|LICENSE|.gitignore|.gitattributes)*/ configuration: Release platform: Any CPU assembly_info: From 6ff1e60a4286a84012fb536f3348a2df189f84e5 Mon Sep 17 00:00:00 2001 From: Marc Sallin Date: Sat, 4 Apr 2015 18:03:19 +0200 Subject: [PATCH 11/12] Added AssemblyCompany attribute --- SQLite.CodeFirst/Properties/AssemblyInfo.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/SQLite.CodeFirst/Properties/AssemblyInfo.cs b/SQLite.CodeFirst/Properties/AssemblyInfo.cs index 14c036b..768e3f1 100644 --- a/SQLite.CodeFirst/Properties/AssemblyInfo.cs +++ b/SQLite.CodeFirst/Properties/AssemblyInfo.cs @@ -8,6 +8,7 @@ "a new SQLite Database, based on your model/code.")] [assembly: AssemblyProduct("SQLite.CodeFirst")] [assembly: AssemblyCopyright("Copyright © Marc Sallin")] +[assembly: AssemblyCompany("Marc Sallin")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from From bc5e713bc3f9ae8c903480ae05d4b77693f9af31 Mon Sep 17 00:00:00 2001 From: Marc Sallin Date: Sat, 4 Apr 2015 18:03:40 +0200 Subject: [PATCH 12/12] Use more information from the AssemblyInfo. --- SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec b/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec index a1bc95a..d8f0de6 100644 --- a/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec +++ b/SQLite.CodeFirst/SQLite.CodeFirst.csproj.nuspec @@ -1,17 +1,14 @@  - SQLite.CodeFirst + $id$ $version$ - Marc Sallin - Marc Sallin + $author$ + $author$ https://github.com/msallin/SQLiteCodeFirst/blob/master/LICENSE https://github.com/msallin/SQLiteCodeFirst false - - Creates a SQLite Database from Code, using Entity Framework CodeFirst. - This Project ships several IDbInitializer which creates a new SQLite Database, based on your model/code. - + $description$ Creates a SQLite Database from Code, using Entity Framework CodeFirst. Copyright (C) Marc Sallin @@ -26,6 +23,6 @@ - + \ No newline at end of file