Skip to content

Commit e6cdcb0

Browse files
committed
fix(appveyor): try to include psql
fix(ci): psql not reconginized fix(ci): Cannot find any service with service name 'postgresql-x64-9.3 Fix(ci): typo fix(ci): appveyor hanging fix(ci): createdb: could not connect to database template1... fix(ci): fix createdb syntax fix(ci): continue trying to fix appveyor fix(ci): fix createdb syntax fix(ci): createdb with no pwd fix(ci) fix(ci) feat(ci): run tests on appveyor fix(ci): restore all projects
1 parent e549df1 commit e6cdcb0

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

Build.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
$revision = @{ $true = $env:APPVEYOR_BUILD_NUMBER; $false = 1 }[$env:APPVEYOR_BUILD_NUMBER -ne $NULL];
22
$revision = "{0:D4}" -f [convert]::ToInt32($revision, 10)
33

4-
dotnet restore .\src\JsonApiDotNetCore\JsonApiDotNetCore.csproj
4+
dotnet restore
5+
6+
dotnet test ./test/JsonApiDotNetCoreExampleTests/JsonApiDotNetCoreExampleTests.csproj
7+
dotnet test ./test/NoEntityFrameworkTests/NoEntityFrameworkTests.csproj
8+
59
dotnet build .\src\JsonApiDotNetCore -c Release
610

711
echo "APPVEYOR_REPO_TAG: $env:APPVEYOR_REPO_TAG"

appveyor.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,40 @@
11
version: '{build}'
22
os: Visual Studio 2017
3+
4+
environment:
5+
POSTGRES_PORT: tcp://localhost:5432
6+
POSTGRES_ENV_POSTGRES_USER: postgres
7+
POSTGRES_ENV_POSTGRES_PASSWORD: Password12!
8+
POSTGRES_ENV_POSTGRES_DB: JsonApiDotNetCoreExample
9+
PGUSER: postgres
10+
PGPASSWORD: Password12!
11+
Data:DefaultConnection: "Host=localhost;Port=5432;Database=JsonApiDotNetCoreExample;User ID=postgres;Password=Password12!"
12+
313
pull_requests:
414
do_not_increment_build_number: true
15+
516
branches:
617
only:
718
- master
819
- develop
920
- unstable
21+
1022
nuget:
1123
disable_publish_on_pr: true
24+
25+
init:
26+
- SET PATH=C:\Program Files\PostgreSQL\9.6\bin\;%PATH%
27+
28+
services:
29+
- postgresql
30+
1231
build_script:
32+
- ps: createdb JsonApiDotNetCoreExample
1333
- ps: dotnet --version
1434
- ps: .\Build.ps1
35+
1536
test: off
37+
1638
artifacts:
1739
- path: .\**\artifacts\**\*.nupkg
1840
name: NuGet
@@ -37,4 +59,4 @@ deploy:
3759
secure: /fsEOgG4EdtNd6DPmko9h3NxQwx1IGDcFreGTKd2KA56U2KEkpX/L/pCGpCIEf2s
3860
on:
3961
branch: master
40-
appveyor_repo_tag: true
62+
appveyor_repo_tag: true

test/NoEntityFrameworkTests/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Data": {
3-
"DefaultConnection": "Host=localhost;Port=5432;Database=JsonApiDotNetCoreExample;User ID=postgres;Password=postgres"
3+
"DefaultConnection": "Host=localhost;Port=5432;Database=JsonApiDotNetCoreExample;User ID=postgres;Password="
44
},
55
"Logging": {
66
"IncludeScopes": false,

0 commit comments

Comments
 (0)