-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
132 changed files
with
2,140 additions
and
2,569 deletions.
There are no files selected for viewing
74 changes: 74 additions & 0 deletions
74
...sqlEntityFrameworkCorePostgreSQL/buildTypes/NpgsqlEntityFrameworkCorePostgreSQL_Build.xml
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,74 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<build-type xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uuid="f579f33b-8663-4da8-ac92-c95c2362e10f" xsi:noNamespaceSchemaLocation="http://www.jetbrains.com/teamcity/schemas/9.0/project-config.xsd"> | ||
<name>Build</name> | ||
<description /> | ||
<settings> | ||
<options> | ||
<option name="artifactRules" value="src\Npgsql.EntityFrameworkCore.PostgreSQL\bin\Release\*.nupkg
src\Npgsql.EntityFrameworkCore.PostgreSQL.Design\bin\Release\*.nupkg" /> | ||
<option name="checkoutMode" value="ON_AGENT" /> | ||
</options> | ||
<parameters> | ||
<param name="env.Test__Npgsql__DefaultConnection" value="Server=localhost;Port=5495;Username=npgsql_tests;Password=npgsql_tests" /> | ||
</parameters> | ||
<build-runners> | ||
<runner id="RUNNER_19" name="Set build number" type="simpleRunner"> | ||
<parameters> | ||
<param name="command.executable" value="teamcity_set_version.cmd" /> | ||
<param name="command.parameters" value="%build.counter%" /> | ||
<param name="teamcity.step.mode" value="default" /> | ||
</parameters> | ||
</runner> | ||
<runner id="RUNNER_25" name="Build Debug" type="simpleRunner"> | ||
<parameters> | ||
<param name="script.content"><![CDATA[set KOREBUILD_DOTNET_PACK_OPTIONS=--version-suffix "%build.counter%" | ||
set Configuration=Debug | ||
build compile]]></param> | ||
<param name="teamcity.step.mode" value="default" /> | ||
<param name="use.custom.script" value="true" /> | ||
</parameters> | ||
</runner> | ||
<runner id="RUNNER_26" name="Test" type="simpleRunner"> | ||
<parameters> | ||
<param name="command.executable" value="build.cmd" /> | ||
<param name="command.parameters" value="test" /> | ||
<param name="teamcity.step.mode" value="default" /> | ||
</parameters> | ||
</runner> | ||
<runner id="RUNNER_27" name="Build Release" type="simpleRunner"> | ||
<parameters> | ||
<param name="script.content"><![CDATA[set KOREBUILD_DOTNET_PACK_OPTIONS=--version-suffix "%build.counter%" | ||
set Configuration=Release | ||
build compile]]></param> | ||
<param name="teamcity.step.mode" value="default" /> | ||
<param name="use.custom.script" value="true" /> | ||
</parameters> | ||
</runner> | ||
<runner id="RUNNER_28" name="Publish nugets to myget" type="jb.nuget.publish"> | ||
<parameters> | ||
<param name="nuget.path" value="?NuGet.CommandLine.DEFAULT" /> | ||
<param name="nuget.publish.files"><![CDATA[src/Npgsql.EntityFrameworkCore.PostgreSQL/bin/Release/*.nupkg | ||
src/Npgsql.EntityFrameworkCore.PostgreSQL.Design/bin/Release/*.nupkg]]></param> | ||
<param name="nuget.publish.source" value="https://www.myget.org/F/npgsql-unstable" /> | ||
<param name="nugetCustomPath" value="?NuGet.CommandLine.DEFAULT" /> | ||
<param name="nugetPathSelector" value="?NuGet.CommandLine.DEFAULT" /> | ||
<param name="secure:nuget.api.key" value="zxxca89988ce5b6f9ad529c572cd56e162ccda4fdff046b0cdb8bff3560c8e35dcbda3e64637e4ca2f1" /> | ||
<param name="teamcity.step.mode" value="default" /> | ||
</parameters> | ||
</runner> | ||
</build-runners> | ||
<vcs-settings> | ||
<vcs-entry-ref root-id="NpgsqlEntityFrameworkCorePostgreSQL_Github" /> | ||
</vcs-settings> | ||
<requirements /> | ||
<build-triggers> | ||
<build-trigger id="vcsTrigger" type="vcsTrigger"> | ||
<parameters> | ||
<param name="branchFilter" value="+:*" /> | ||
<param name="quietPeriodMode" value="DO_NOT_USE" /> | ||
</parameters> | ||
</build-trigger> | ||
</build-triggers> | ||
<cleanup /> | ||
</settings> | ||
</build-type> | ||
|
5 changes: 5 additions & 0 deletions
5
.teamcity/NpgsqlEntityFrameworkCorePostgreSQL/pluginData/plugin-settings.xml
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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<settings> | ||
<versionedSettings rootId="NpgsqlEntityFrameworkCorePostgreSQL_Github" enabled="true" showChanges="false" buildSettings="PREFER_VCS" /> | ||
</settings> | ||
|
11 changes: 11 additions & 0 deletions
11
.teamcity/NpgsqlEntityFrameworkCorePostgreSQL/project-config.xml
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,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uuid="ba94274f-bb0e-4ed9-851e-90e4a25cd698" xsi:noNamespaceSchemaLocation="http://www.jetbrains.com/teamcity/schemas/9.0/project-config.xsd"> | ||
<name>Npgsql.EntityFrameworkCore.PostgreSQL</name> | ||
<description>Entity Framework Core for PostgreSQL</description> | ||
<parameters> | ||
<param name="env.Test__Npgsql__DefaultConnection" value="Server=localhost;Port=5495;Username=npgsql_tests;Password=npgsql_tests;PersistSecurityInfo=true" /> | ||
<param name="GitVersion.NuGetVersion" value="" /> | ||
</parameters> | ||
<cleanup /> | ||
</project> | ||
|
19 changes: 19 additions & 0 deletions
19
...gsqlEntityFrameworkCorePostgreSQL/vcsRoots/NpgsqlEntityFrameworkCorePostgreSQL_Github.xml
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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<vcs-root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uuid="efb1b201-49da-44ec-962d-16fa17997599" type="jetbrains.git" xsi:noNamespaceSchemaLocation="http://www.jetbrains.com/teamcity/schemas/9.0/project-config.xsd"> | ||
<name>Github</name> | ||
<param name="agentCleanFilesPolicy" value="ALL_UNTRACKED" /> | ||
<param name="agentCleanPolicy" value="ALWAYS" /> | ||
<param name="authMethod" value="PASSWORD" /> | ||
<param name="branch" value="dev" /> | ||
<param name="ignoreKnownHosts" value="true" /> | ||
<param name="secure:password" value="zxx9b1a45147d7e64e7775d03cbe80d301b" /> | ||
<param name="submoduleCheckout" value="CHECKOUT" /> | ||
<param name="teamcity:branchSpec"><![CDATA[+:refs/heads/(*) | ||
# The following activates building PRs | ||
+:refs/pull/*/merge]]></param> | ||
<param name="url" value="https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL.git" /> | ||
<param name="useAlternates" value="true" /> | ||
<param name="username" value="npgsql-teamcity" /> | ||
<param name="usernameStyle" value="USERID" /> | ||
</vcs-root> | ||
|
This file was deleted.
Oops, something went wrong.
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,43 @@ | ||
#!/bin/bash | ||
|
||
if [ "$#" -ne 1 ]; then | ||
echo "usage: bump.sh <version>" | ||
exit 1 | ||
fi | ||
|
||
v=$1 | ||
if [[ $v == *"-" ]]; then | ||
echo "Version must not end with -" | ||
exit 1 | ||
fi | ||
|
||
echo "echo ##teamcity[buildNumber '$v-%1']" > teamcity_set_version.cmd | ||
|
||
if [[ $v == *"-"* ]]; then | ||
# Prerelease version | ||
|
||
without_prerelease=`echo $v | cut -d- -f1` | ||
|
||
sed -i 's/^\(\s*\)"version": "[^"]*"/\1"version": "'$v'-*"/' src/Npgsql.EntityFrameworkCore.PostgreSQL/project.json | ||
sed -i 's/^\(\s*\)"version": "[^"]*"/\1"version": "'$v'-*"/' src/Npgsql.EntityFrameworkCore.PostgreSQL.Design/project.json | ||
|
||
sed -i 's/AssemblyVersion("[^"]*")/AssemblyVersion("'$without_prerelease'")/' src/Shared/CommonAssemblyInfo.cs | ||
sed -i 's/AssemblyFileVersion("[^"]*")/AssemblyFileVersion("'$without_prerelease'")/' src/Shared/CommonAssemblyInfo.cs | ||
sed -i 's/AssemblyInformationalVersion("[^"]*")/AssemblyInformationalVersion("'$v'")/' src/Shared/CommonAssemblyInfo.cs | ||
else | ||
# Release version | ||
|
||
sed -i 's/^\(\s*\)"version": "[^"]*"/\1"version": "'$v'"/' src/Npgsql.EntityFrameworkCore.PostgreSQL/project.json | ||
sed -i 's/^\(\s*\)"version": "[^"]*"/\1"version": "'$v'"/' src/Npgsql.EntityFrameworkCore.PostgreSQL.Design/project.json | ||
|
||
sed -i 's/AssemblyVersion("[^"]*")/AssemblyVersion("'$v'")/' src/Shared/CommonAssemblyInfo.cs | ||
sed -i 's/AssemblyFileVersion("[^"]*")/AssemblyFileVersion("'$v'")/' src/Shared/CommonAssemblyInfo.cs | ||
sed -i 's/AssemblyInformationalVersion("[^"]*")/AssemblyInformationalVersion("'$v'")/' src/Shared/CommonAssemblyInfo.cs | ||
fi | ||
|
||
git add teamcity_set_version.cmd | ||
git add src/Npgsql.EntityFrameworkCore.PostgreSQL/project.json | ||
git add src/Npgsql.EntityFrameworkCore.PostgreSQL.Design/project.json | ||
git add src/Shared/CommonAssemblyInfo.cs | ||
|
||
git commit -m "Bump version to $v" |
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
16 changes: 16 additions & 0 deletions
16
...FrameworkCore.PostgreSQL.Design/Npgsql.EntityFrameworkCore.PostgreSQL.Design.project.json
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,16 @@ | ||
{ | ||
"dependencies" : { | ||
"Microsoft.EntityFrameworkCore": "1.0.0", | ||
"Microsoft.EntityFrameworkCore.Relational": "1.0.0", | ||
"Microsoft.EntityFrameworkCore.Relational.Design": "1.0.0", | ||
"Microsoft.Extensions.DependencyInjection": "1.0.0", | ||
"Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0", | ||
"Npgsql": "3.1.5" | ||
}, | ||
"frameworks": { | ||
"net451": {} | ||
}, | ||
"runtimes": { | ||
"win": {} | ||
} | ||
} |
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
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
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
Oops, something went wrong.