-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
59 lines (51 loc) · 1.48 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
stages:
- build
- test
- increase-version
- deploy-baget
variables:
LIBRARY_DIRECTORY: "Wkg.AspNetCore/Wkg.AspNetCore"
LIBRARY_PROJECT: "${LIBRARY_DIRECTORY}/Wkg.AspNetCore.csproj"
LIBRARY_TEST_PROJECT: "Wkg.AspNetCore/Wkg.AspNetCoreTests/Wkg.AspNetCoreTests.csproj"
TEST_ADAPTER_DIRECTORY: "Wkg.AspNetCore/Wkg.AspNetCore.TestAdapters"
TEST_ADAPTER_PROJECT: "${TEST_ADAPTER_DIRECTORY}/Wkg.AspNetCore.TestAdapters.csproj"
MAJOR_VERSION: "9"
MINOR_VERSION: "0"
include:
- project: 'wkg/gitlab-templates'
ref: 'v1.2.19'
file:
- '/jobs/build_dotnet_9.yml'
- '/jobs/test_dotnet_9.yml'
- '/jobs/increase_version.yml'
- '/jobs/deploy_nuget_dotnet_9.yml'
build-library:
extends: .build
variables:
PROJECT_FILE_PATH: "${LIBRARY_PROJECT}"
build-test-adapters:
extends: .build
variables:
PROJECT_FILE_PATH: "${TEST_ADAPTER_PROJECT}"
test-library:
extends: .test
variables:
TEST_PROJECT_FILE_PATH: "${LIBRARY_TEST_PROJECT}"
increase-version:
extends: .increase-version
only:
- main
- master
- /^rc-.*$/
- /^dev-.*$/
- /^diag-.*$/
deploy-library:
extends: .deploy-nuget-public
variables:
PROJECT_FILE_PATH: "${LIBRARY_PROJECT}"
DOTNET_CI_VERSION_FILE: "${LIBRARY_DIRECTORY}/WkgAspNetCore.cs"
deploy-test-adapters:
extends: .deploy-nuget-public
variables:
PROJECT_FILE_PATH: "${TEST_ADAPTER_PROJECT}"
DOTNET_CI_VERSION_FILE: "${TEST_ADAPTER_DIRECTORY}/WkgAspNetCoreTestAdapters.cs"