-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
141 lines (121 loc) · 3.61 KB
/
.gitlab-ci.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
image: mcr.microsoft.com/dotnet/sdk:5.0
stages:
- build
- test
- publish
# - deploy
# run builds and tests in parallel for all components
build Encryption for linux-x64:
stage: build
script:
- dotnet build -r linux-x64 -c Release ./src/main/Encryption/VengefulFi.Encryption.fsproj
artifacts:
paths:
- src/main/Encryption/bin/Release/
- src/main/Encryption/obj/Release/
build Encryption for win10-x64:
stage: build
script:
- dotnet build -r win10-x64 -c Release ./src/main/Encryption/VengefulFi.Encryption.fsproj
artifacts:
paths:
- src/main/Encryption/bin/Release/
- src/main/Encryption/obj/Release/
build Ipld for linux-x64:
stage: build
script:
- dotnet build -r linux-x64 -c Release ./src/main/Ipld/VengefulFi.Ipld.fsproj
artifacts:
paths:
- src/main/Ipld/bin/Release/
- src/main/Ipld/obj/Release/
build Ipld for win10-x64:
stage: build
script:
- dotnet build -r win10-x64 -c Release ./src/main/Ipld/VengefulFi.Ipld.fsproj
artifacts:
paths:
- src/main/Ipld/bin/Release/
- src/main/Ipld/obj/Release/
build UnixFS for linux-x64:
stage: build
script:
- dotnet build -r linux-x64 -c Release ./src/main/UnixFS/VengefulFi.UnixFS.fsproj
artifacts:
paths:
- src/main/UnixFS/bin/Release/
- src/main/UnixFS/obj/Release/
build UnixFS for win10-x64:
stage: build
script:
- dotnet build -r win10-x64 -c Release ./src/main/UnixFS/VengefulFi.UnixFS.fsproj
artifacts:
paths:
- src/main/UnixFS/bin/Release/
- src/main/UnixFS/obj/Release/
build RpcApi for linux-x64:
stage: build
script:
- dotnet build -r linux-x64 -c Release ./src/main/RpcApi/VengefulFi.RpcApi.csproj
artifacts:
paths:
- src/main/RpcApi/bin/Release/
- src/main/RpcApi/obj/Release/
build RpcApi for win10-x64:
stage: build
script:
- dotnet build -r win10-x64 -c Release ./src/main/RpcApi/VengefulFi.RpcApi.csproj
artifacts:
paths:
- src/main/RpcApi/bin/Release/
- src/main/RpcApi/obj/Release/
# run builds and tests in parallel for all components
publish RpcApi for linux-x64:
stage: publish
# create a single executable native binary
script:
- "dotnet publish -r linux-x64 -c Release /p:PublishSingleFile=true ./src/main/RpcApi/VengefulFi.RpcApi.csproj"
dependencies:
- "build RpcApi for linux-x64"
artifacts:
paths:
- src/main/RpcApi/bin/Release/
- src/main/RpcApi/obj/Release/
publish RpcApi for win10-x64:
stage: publish
# create a single executable native binary
script:
- "dotnet publish -r win10-x64 -c Release /p:PublishSingleFile=true ./src/main/RpcApi/VengefulFi.RpcApi.csproj"
dependencies:
- "build RpcApi for win10-x64"
artifacts:
paths:
- src/main/RpcApi/bin/Release/
- src/main/RpcApi/obj/Release/
# run builds and tests in parallel for all components
test Encryption:
stage: test
script:
- dotnet test -c Release --collect:"XPlat Code Coverage" ./src/test/Encryption.Tests/VengefulFi.Encryption.Tests.fsproj
artifacts:
paths:
- src/main/Encryption/bin/Release/
- src/main/Encryption/obj/Release/
test Ipld:
stage: test
script:
- dotnet test -c Release --collect:"XPlat Code Coverage" ./src/test/Ipld.Tests/VengefulFi.Ipld.Tests.fsproj
artifacts:
paths:
- src/main/Ipld/bin/Release/
- src/main/Ipld/obj/Release/
# run builds and tests in parallel for all components
# deploy RpcApi for linux-x64:
# stage: deploy
# script:
# - TODO
# run builds and tests in parallel for all components
# deploy RpcApi for win10-x64:
# stage: deploy
# script:
# - TODO