Skip to content

Commit 50bc9c8

Browse files
author
Marc Sallin
committed
Merge pull request #15 from msallin/CI_Test
CI implementation appveyor
2 parents 5fda7bd + bc5e713 commit 50bc9c8

File tree

7 files changed

+98
-42
lines changed

7 files changed

+98
-42
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# SQLite CodeFirst
2+
**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)
3+
4+
**CI Build** [![Build status](https://ci.appveyor.com/api/projects/status/oc1miog385h801qe?svg=true)](https://ci.appveyor.com/project/msallin/sqlitecodefirst)
5+
26
Creates a [SQLite Database](https://sqlite.org/) from Code, using [Entity Framework](https://msdn.microsoft.com/en-us/data/ef.aspx) CodeFirst.
37

48
This Project ships several `IDbInitializer` which creates a new SQLite Database, based on your model/code.
Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
using System.Reflection;
2-
using System.Runtime.CompilerServices;
32
using System.Runtime.InteropServices;
43

5-
// General Information about an assembly is controlled through the following
6-
// set of attributes. Change these attribute values to modify the information
7-
// associated with an assembly.
8-
[assembly: AssemblyTitle("SQLite.CodeFirst.Console")]
9-
[assembly: AssemblyDescription("")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
4+
[assembly: AssemblyTitle("SQLite.CodeFirst")]
5+
[assembly: AssemblyDescription("A console application which demonstrates how to use QLite.CodeFirst.")]
126
[assembly: AssemblyProduct("SQLite.CodeFirst")]
13-
[assembly: AssemblyCopyright("Copyright © 2015")]
14-
[assembly: AssemblyTrademark("")]
15-
[assembly: AssemblyCulture("")]
7+
[assembly: AssemblyCopyright("Copyright © Marc Sallin")]
168

179
// Setting ComVisible to false makes the types in this assembly not visible
1810
// to COM components. If you need to access a type in this assembly from
@@ -22,15 +14,6 @@
2214
// The following GUID is for the ID of the typelib if this project is exposed to COM
2315
[assembly: Guid("945f6a68-1bcd-47ff-a551-a2820b88ff8c")]
2416

25-
// Version information for an assembly consists of the following four values:
26-
//
27-
// Major Version
28-
// Minor Version
29-
// Build Number
30-
// Revision
31-
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
33-
// by using the '*' as shown below:
34-
// [assembly: AssemblyVersion("1.0.*")]
3517
[assembly: AssemblyVersion("1.0.0.0")]
3618
[assembly: AssemblyFileVersion("1.0.0.0")]
19+
[assembly: AssemblyInformationalVersion("1.0.0.0")]

SQLite.CodeFirst.sln

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{01B97A
1414
.nuget\NuGet.targets = .nuget\NuGet.targets
1515
EndProjectSection
1616
EndProject
17+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{7031BD3C-AE76-43CD-91B6-B6BCD823968C}"
18+
ProjectSection(SolutionItems) = preProject
19+
release_appveyor.yml = release_appveyor.yml
20+
EndProjectSection
21+
EndProject
1722
Global
1823
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1924
Debug|Any CPU = Debug|Any CPU
Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
using System.Reflection;
2-
using System.Runtime.CompilerServices;
32
using System.Runtime.InteropServices;
43

5-
// General Information about an assembly is controlled through the following
6-
// set of attributes. Change these attribute values to modify the information
7-
// associated with an assembly.
84
[assembly: AssemblyTitle("SQLite.CodeFirst")]
9-
[assembly: AssemblyDescription("")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
5+
[assembly: AssemblyDescription(
6+
"Creates a SQLite Database from Code, using Entity Framework CodeFirst. " +
7+
"This Project ships several IDbInitializer which creates " +
8+
"a new SQLite Database, based on your model/code.")]
129
[assembly: AssemblyProduct("SQLite.CodeFirst")]
13-
[assembly: AssemblyCopyright("Copyright © 2015")]
14-
[assembly: AssemblyTrademark("")]
15-
[assembly: AssemblyCulture("")]
10+
[assembly: AssemblyCopyright("Copyright © Marc Sallin")]
11+
[assembly: AssemblyCompany("Marc Sallin")]
1612

1713
// Setting ComVisible to false makes the types in this assembly not visible
1814
// to COM components. If you need to access a type in this assembly from
@@ -22,15 +18,7 @@
2218
// The following GUID is for the ID of the typelib if this project is exposed to COM
2319
[assembly: Guid("46603902-448a-4c50-87ec-09cb792b740f")]
2420

25-
// Version information for an assembly consists of the following four values:
26-
//
27-
// Major Version
28-
// Minor Version
29-
// Build Number
30-
// Revision
31-
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
33-
// by using the '*' as shown below:
34-
// [assembly: AssemblyVersion("1.0.*")]
21+
// Will be replaced by the build server
3522
[assembly: AssemblyVersion("1.0.0.0")]
3623
[assembly: AssemblyFileVersion("1.0.0.0")]
24+
[assembly: AssemblyInformationalVersion("1.0.0.0")]

SQLite.CodeFirst/SQLite.CodeFirst.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
<Reference Include="System" />
4747
<Reference Include="System.Core" />
4848
<Reference Include="System.Data" />
49-
<Reference Include="System.Data.Entity" />
5049
</ItemGroup>
5150
<ItemGroup>
5251
<Compile Include="Builder\ColumnStatementCollectionBuilder.cs" />
@@ -75,6 +74,7 @@
7574
</ItemGroup>
7675
<ItemGroup>
7776
<None Include="packages.config" />
77+
<None Include="SQLite.CodeFirst.csproj.nuspec" />
7878
</ItemGroup>
7979
<ItemGroup />
8080
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
3+
<metadata>
4+
<id>$id$</id>
5+
<version>$version$</version>
6+
<authors>$author$</authors>
7+
<owners>$author$</owners>
8+
<licenseUrl>https://github.com/msallin/SQLiteCodeFirst/blob/master/LICENSE</licenseUrl>
9+
<projectUrl>https://github.com/msallin/SQLiteCodeFirst</projectUrl>
10+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
11+
<description>$description$</description>
12+
<summary>Creates a SQLite Database from Code, using Entity Framework CodeFirst.</summary>
13+
<releaseNotes />
14+
<copyright>Copyright (C) Marc Sallin</copyright>
15+
<tags>SQLite EntityFramework EF CodeFirst</tags>
16+
<dependencies>
17+
<dependency id="EntityFramework" version="6.1" />
18+
</dependencies>
19+
<frameworkAssemblies>
20+
<frameworkAssembly assemblyName="System" targetFramework="" />
21+
<frameworkAssembly assemblyName="System.Core" targetFramework="" />
22+
<frameworkAssembly assemblyName="System.Data" targetFramework="" />
23+
</frameworkAssemblies>
24+
</metadata>
25+
<files>
26+
<file src="bin\$configuration$\$id$.dll" target="lib\net45\SQLite.CodeFirst.dll" />
27+
</files>
28+
</package>

release_appveyor.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# See http://www.appveyor.com/docs/appveyor-yml for many more options
2+
3+
version: Release_{branch}_0.9.{build}.0
4+
branches:
5+
only:
6+
- master
7+
skip_tags: true
8+
# Skip on updates to the readme.
9+
# We can force this by adding [skip ci] or [ci skip] anywhere in commit message
10+
skip_commits:
11+
message: /Update (README.md|LICENSE|.gitignore|.gitattributes)*/
12+
configuration: Release
13+
platform: Any CPU
14+
assembly_info:
15+
patch: true
16+
file: '**\AssemblyInfo.*'
17+
assembly_version: 0.9.{build}.0
18+
assembly_file_version: 0.9.{build}.0
19+
assembly_informational_version: 0.9.{build}.0
20+
build:
21+
publish_nuget: true
22+
publish_nuget_symbols: true
23+
verbosity: normal
24+
artifacts:
25+
- path: SQLite.CodeFirst\bin\*\SQLite.CodeFirst.dll
26+
name: SQLiteCodeFirst
27+
deploy:
28+
- provider: NuGet
29+
api_key:
30+
secure: QmbFnerlfTAFUZpnaPgVDywMH4fF8rVakefmqvhu3qm9SpuDlLGB9S4HwtdE3Nep
31+
on:
32+
branch: master
33+
- provider: GitHub
34+
tag: v$(appveyor_build_version)
35+
release: v$(appveyor_build_version)
36+
description: https://www.nuget.org/packages/SQLite.CodeFirst/
37+
auth_token:
38+
secure: e3cqaFy9PzI9TAdZJBIDy97Bfbwa7j0EXe2yw7Ev9aJXK0Q+3mnULqb1VU4P7BWR
39+
artifact: SQLiteCodeFirst
40+
draft: true
41+
on:
42+
branch: master
43+
notifications:
44+
- provider: Webhook
45+
url: https://zapier.com/hooks/catch/b3cbz0/
46+
on_build_success: true
47+
on_build_failure: true
48+
on_build_status_changed: false

0 commit comments

Comments
 (0)