forked from lecaillon/Evolve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
74 lines (60 loc) · 2.06 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
70
71
72
73
74
#---------------------------------#
# general configuration #
#---------------------------------#
version: 1.0.0.{build}
skip_non_tags: false
image: Visual Studio 2017
configuration: Release
# enable service required for build/tests
services:
- postgresql
- mssql2016
- mysql
# scripts that are called at very beginning, before repo cloning
init:
- cmd: SET PGUSER=postgres
- cmd: SET PGPASSWORD=Password12!
- cmd: SET MYSQL_PWD=Password12!
- cmd: SET PATH=C:\Program Files\PostgreSQL\9.5\bin\;%PATH%
- cmd: SET PATH=C:\Program Files\MySQL\MySQL Server 5.7\bin\;%PATH%
- cmd: SET PATH=C:\projects\evolve\packages\xunit.runner.console.2.3.1\tools\net452\;%PATH%
#---------------------------------#
# build #
#---------------------------------#
# scripts to run before build
before_build:
- ps: dotnet restore
- ps: nuget restore
# build
build:
verbosity: minimal
#---------------------------------#
# tests #
#---------------------------------#
# scripts to run before tests
before_test:
- cmd: createdb my_database
- cmd: mysql -e "create database my_database;" --user=root
# tests
test_script:
- ps: cd test/Evolve.Core.Test/
- ps: dotnet test
- ps: cd ../..
- ps: cd test/Evolve.Core.Test.Driver/
- ps: dotnet test
- ps: cd ../..
- cmd: xunit.console.exe test\Evolve.Test\bin\%CONFIGURATION%\Evolve.Test.dll
- cmd: xunit.console.exe test\Evolve.IntegrationTest.MySQL\bin\%CONFIGURATION%\Evolve.IntegrationTest.MySQL.dll
- cmd: xunit.console.exe test\Evolve.IntegrationTest.PostgreSQL\bin\%CONFIGURATION%\Evolve.IntegrationTest.PostgreSQL.dll
- cmd: xunit.console.exe test\Evolve.IntegrationTest.SQLServer\bin\%CONFIGURATION%\Evolve.IntegrationTest.SQLServer.dll
- cmd: xunit.console.exe test\Evolve.IntegrationTest.SQLite\bin\%CONFIGURATION%\Evolve.IntegrationTest.SQLite.dll
#---------------------------------#
# artifacts configuration #
#---------------------------------#
# scripts to run after tests
after_test:
- ps: cd src/Evolve
- ps: nuget pack Evolve.nuspec
- ps: cd ../..
artifacts:
- path: '**\Evolve*.nupkg'