-
Notifications
You must be signed in to change notification settings - Fork 604
/
appveyor.yml
69 lines (61 loc) · 2 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
59
60
61
62
63
64
65
66
67
68
69
image: Visual Studio 2022
install:
- nuget install redis-64 -excludeversion
- redis-64\tools\redis-server.exe --service-install
- redis-64\tools\redis-server.exe --service-start
skip_branch_with_pr: true
skip_tags: true
skip_commits:
files:
- '**/*.md'
- docs/*
environment:
Appveyor: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Postgres
POSTGRES_PATH: C:\Program Files\PostgreSQL\16
PGUSER: postgres
PGPASSWORD: Password12!
POSTGRES_ENV_POSTGRES_USER: postgres
POSTGRES_ENV_POSTGRES_PASSWORD: Password12!
POSTGRES_ENV_POSTGRES_DB: test
PostgreSqlConnectionString: Server=localhost;Port=5432;Database=test;User Id=postgres;Password=Password12!;
# MySQL
MYSQL_PATH: C:\Program Files\MySQL\MySQL Server 8.0
MYSQL_PWD: Password12!
MYSQL_ENV_MYSQL_USER: root
MYSQL_ENV_MYSQL_PASSWORD: Password12!
MYSQL_ENV_MYSQL_DATABASE: test
MySQLConnectionString: server=localhost;uid=root;pwd=Password12!;database=test;Allow User Variables=true
init:
- git config --global core.autocrlf input
- SET PATH=%POSTGRES_PATH%\bin;%MYSQL_PATH%\bin;%PATH%
- net start MSSQL$SQL2019
- net start postgresql-x64-16
- ps: Start-Service MySQL80
nuget:
disable_publish_on_pr: true
build_script:
# Postgres
- createdb test
# MySQL
- '"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -e "create database test;" --user=root'
- ps: .\build.ps1 -PullRequestNumber "$env:APPVEYOR_PULL_REQUEST_NUMBER" -CreatePackages $true
test: off
artifacts:
- path: .\.nupkgs\*.nupkg
deploy:
- provider: NuGet
server: https://www.myget.org/F/miniprofiler/api/v2
on:
branch: main
api_key:
secure: LLyiHXh/pU4i8H2Cn74C5sXNV+5MX0gpJZuunTnXv/KoafhfmkB/65/TcV4B7kj2
symbol_server: https://www.myget.org/F/miniprofiler/symbols/api/v2/package
- provider: NuGet
server: https://www.myget.org/F/stackoverflow/api/v2
on:
branch: main
api_key:
secure: P/UHxq2DEs0GI1SoDXDesHjRVsSVgdywz5vmsnhFQQY5aJgO3kP+QfhwfhXz19Rw
symbol_server: https://www.myget.org/F/stackoverflow/symbols/api/v2/package