Permalink
Browse files

Appveyor build improvements

- SSL
- PostGIS
- Prepared transactions
- Some general cleanup
  • Loading branch information...
roji committed Mar 14, 2017
1 parent 87cf034 commit a48f981892878ba28a86a2ec38274042a36e0735
Showing with 97 additions and 5 deletions.
  1. +11 −4 .appveyor.yml
  2. +57 −0 .build/server.crt
  3. +15 −0 .build/server.key
  4. +14 −0 .build/setup-pg.ps1
  5. +0 −1 .gitignore
View
@@ -1,27 +1,34 @@
image: Visual Studio 2017
version: 3.2.2-{build}
services:
- postgresql
environment:
global:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
NPGSQL_TEST_DB: Host=localhost;Database=postgres;Username=postgres;Password=Password12!
PGUSER: postgres
PGPASSWORD: Password12!
POSTGIS_EXE: postgis-bundle-pg95x64-setup-2.3.2-1.exe
cache:
- '%USERPROFILE%\.nuget\packages -> **\*.csproj'
- 'C:\projects\npgsql\packages -> **\*.csproj' # For VSIX
- $(POSTGIS_EXE)
shallow_clone: true
install:
- ps: $env:padded_build_number = $env:appveyor_build_number.PadLeft(5, '0')
- powershell .build\setup-pg.ps1
services:
- postgresql
before_build:
- '"C:\Program Files\PostgreSQL\9.5\bin\psql" -c "CREATE EXTENSION postgis"'
- appveyor-retry dotnet restore -v Minimal
- appveyor-retry nuget restore Npgsql.sln # For VSIX
build_script:
- dotnet build "src\Npgsql" -c ReleaseOptimizedCryptography
- dotnet build "test\Npgsql.Tests" -c Debug
- dotnet pack src\Npgsql\Npgsql.csproj -c ReleaseOptimizedCryptography --version-suffix ci-%PADDED_BUILD_NUMBER%
- msbuild src\VSIX\VSIX.csproj /p:Configuration=Release
- msbuild src\MSI\MSI.wixproj /p:Configuration=Release
after_build:
- ps: $env:padded_build_number = $env:appveyor_build_number.PadLeft(5, '0')
- dotnet pack src\Npgsql\Npgsql.csproj -c ReleaseOptimizedCryptography --version-suffix ci-%PADDED_BUILD_NUMBER%
test:
assemblies:
- test\Npgsql.Tests\bin\Debug\net451\Npgsql.Tests.exe
View
@@ -0,0 +1,57 @@
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 12599801177921850358 (0xaedb7c6a2a948bf6)
Signature Algorithm: sha1WithRSAEncryption
Issuer: C=AU, ST=Some-State, O=Internet Widgits Pty Ltd, CN=localhost
Validity
Not Before: Mar 13 11:19:37 2015 GMT
Not After : Apr 12 11:19:37 2015 GMT
Subject: C=AU, ST=Some-State, O=Internet Widgits Pty Ltd, CN=localhost
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
Public-Key: (1024 bit)
Modulus:
00:c1:df:3f:3b:b8:59:b1:33:ae:9c:ec:6b:44:41:
7b:0a:cd:51:62:98:e2:11:f0:a0:7d:65:67:9b:49:
88:15:91:cf:30:f1:23:dc:3c:00:83:76:be:59:df:
9c:66:8f:eb:f3:a7:73:a0:eb:2a:26:85:d2:48:aa:
4f:88:1b:b8:31:22:df:bd:e3:1b:6f:4f:70:c3:b2:
f4:a8:14:07:0e:77:d7:fe:91:b1:b1:3d:0a:cc:5e:
32:ac:31:06:d3:d7:cf:e5:fc:3c:c0:db:c0:6b:0e:
00:e0:a5:32:4a:2d:90:63:37:7e:c8:e6:5d:ad:df:
30:81:7e:65:4a:6d:71:a5:9b
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Subject Key Identifier:
17:4C:64:08:33:71:2A:34:33:CA:15:3E:F3:B8:98:1A:E7:8E:64:F4
X509v3 Authority Key Identifier:
keyid:17:4C:64:08:33:71:2A:34:33:CA:15:3E:F3:B8:98:1A:E7:8E:64:F4
X509v3 Basic Constraints:
CA:TRUE
Signature Algorithm: sha1WithRSAEncryption
81:f4:69:3e:b1:c0:9f:4b:82:10:8d:3e:7c:98:70:2a:f3:24:
ca:33:13:35:1d:9e:84:dc:b4:f1:17:1f:e6:18:d5:86:51:b3:
ce:3e:4a:97:39:cc:7e:74:94:01:da:68:43:df:b0:b6:fc:29:
0c:86:ce:5f:0c:3d:c6:f0:8c:c0:f5:86:e7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z/KNFYlLO1n3r3ObM=
-----END CERTIFICATE-----
View
@@ -0,0 +1,15 @@
-----BEGIN RSA PRIVATE KEY-----
MIICXgIBAAKBgQDB3z87uFmxM66c7GtEQXsKzVFimOIR8KB9ZWebSYgVkc8w8SPc
PACDdr5Z35xmj+vzp3Og6yomhdJIqk+IG7gxIt+94xtvT3DDsvSoFAcOd9f+kbGx
PQrMXjKsMQbT18/l/DzA28BrDgDgpTJKLZBjN37I5l2t3zCBfmVKbXGlmwIDAQAB
AoGBAJnspubCcivXzb33kx7JImisJP60RWFa/AEzPrQzCGGft7Gy8vbLiNjXsT/n
4uQnRn3YKFzN+VRGkXNyDN0SrQSrRrFST56aLBhqe4BEO3l6JQJQ6h1y5aW7/R+y
ehV9HIQd+RFgcyejStXJnXYC7lPycOjT4SGG/7mOZkOIbRmJAkEA8NwHvvxsLW77
UwVto7us0oR0Ey8/vCgbEruZTdr+rVeOKKUvM4K1r4hMunXc2kJ+hhYYMoF2wfIv
gpPq1F+GLQJBAM4PFV8pL+fLqQqoRh/2dGDBKQU5wlQS+A4sTAPTdy3V1zx3BE8s
KJeYIk2Z72HqNLAL/LUC/gwKwuVg+3k0v+cCQQC2HZhZxyDAZabwSi1xXMk6z924
V8R4L1bxHhm3bXudc5NQlj2PVCiuFX/2iIG6IgbqubAIGC3ETauwrskjVSrtAkEA
gltgddcki0t4IVnbIxVTAnKwdLHZkj591tmHLVR2LPT/OS1B+KRC+cQwz0729cao
lka/E/RUq2GTcnEsJb2NOQJAOHwXsZJj+qrMQmHmmej6X2Rro4bX7cJmyK99mAtC
LigiSdiY/uDqJ/p+cHPH9g2RLWeFetUAZID94uNRk1peAg==
-----END RSA PRIVATE KEY-----
View
@@ -0,0 +1,14 @@
Write-Host Enabling PostgreSQL prepared transactions...
Add-Content 'C:\Program Files\PostgreSQL\9.5\data\postgresql.conf' "`nmax_prepared_transactions = 10"
Write-Host Enabling PostgreSQL SSL...
Add-Content 'C:\Program Files\PostgreSQL\9.5\data\postgresql.conf' "`nssl = true"
Copy-Item .build\server.* "C:\Program Files\PostgreSQL\9.5\data"
Write-Host Enabling PostGIS...
If (!(Test-Path $env:POSTGIS_EXE)) {
Write-Host Downloading PostGIS...
(New-Object Net.WebClient).DownloadFile("http://download.osgeo.org/postgis/windows/pg95/$env:POSTGIS_EXE", "$env:POSTGIS_EXE")
}
iex ".\$env:POSTGIS_EXE /S /D='C:\Program Files\PostgreSQL\9.5'"
View
@@ -17,5 +17,4 @@ artifacts/
# Roslyn cache directories
*.ide/
.vs/
.build
TestResult.xml

0 comments on commit a48f981

Please sign in to comment.