forked from JasperFx/marten
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
58 lines (47 loc) · 1.58 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# set version as running build number for CI build use
version: Build {build}
branches:
only:
- 3.13
configuration: Release
os: Visual Studio 2019
environment:
config: Release
disable_test_parallelization: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
marten_testing_database: "Host=localhost;Port=5432;Database=marten_testing;Username=postgres;Password=Password12!"
POSTGRES_PATH: C:\Program Files\PostgreSQL\10
PG_PLV8_EXTENSION_ZIP_FILENAME: pg10plv8jsbin_w64
PG_DB: marten_testing
NUGET_DEPLOY_KEY:
secure: gRYMiyKuH3WEGdrr2b+APdl6BS7lRL3xhl3L/pcyPt2RJnQ0SVrW7hxjk8Qrqkns
services:
- postgresql101
install:
- SET PATH=%POSTGRES_PATH%\bin;%PATH%
- curl -L -O -S -s http://www.postgresonline.com/downloads/%PG_PLV8_EXTENSION_ZIP_FILENAME%.zip
- 7z x %PG_PLV8_EXTENSION_ZIP_FILENAME%.zip
- xcopy /s /y /d %PG_PLV8_EXTENSION_ZIP_FILENAME% "%POSTGRES_PATH%\"
before_build:
- SET PGUSER=postgres
- SET PGPASSWORD=Password12!
- createdb %PG_DB%
- psql -d %PG_DB% -c "create extension if not exists plv8;"
- npm install
- dotnet --info
build_script:
- cmd: >-
build.cmd ci
test: off
artifacts:
- path: '**\Marten.*.*nupkg' # find all NuGet packages recursively
deploy:
provider: NuGet
api_key: $(NUGET_DEPLOY_KEY)
artifact: /.*\.nupkg/
on:
APPVEYOR_REPO_TAG: true
# workaround to publish snupkg to NuGet (appveyor is yet to support publishing snupkg)
after_deploy:
- ps: Get-ChildItem -Path *.snupkg -Recurse | % { dotnet nuget push $_.FullName -s https://api.nuget.org/v3/index.json -k $env:NUGET_DEPLOY_KEY }