Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

Commit da68b4b

Browse files
Updates to the build process (#76)
* snupkg, update the linux image and remove travis * removed publish command. It's unnecessary * remove duplicated commands * added comment * use buildProperties instead of arguments * removed comment and updated to ANY 2.2 * latest 2.2
1 parent 819277f commit da68b4b

3 files changed

Lines changed: 10 additions & 44 deletions

File tree

.travis.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.vsts/ci-build.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# CI build. No publioshing of artifacts
22

33
variables:
4-
DotNetVersion: "2.1.402"
4+
DotNetVersion: "2.2.101"
55

66
phases:
77

@@ -14,12 +14,7 @@ phases:
1414
inputs:
1515
version: $(DotNetVersion)
1616

17-
- task: DotNetCoreCLI@2
18-
displayName: restore packages
19-
inputs:
20-
command: "restore"
21-
projects: "*.sln"
22-
17+
# "restore" is run automatically by "build"
2318
- task: DotNetCoreCLI@2
2419
displayName: build solution (Release)
2520
inputs:
@@ -38,19 +33,14 @@ phases:
3833
- task: PublishTestResults@2
3934

4035
- phase: Linux
41-
queue: Hosted Linux Preview
36+
queue: Hosted Ubuntu 1604
4237
steps:
4338
- task: DotNetCoreInstaller@0
4439
displayName: force use of desired dotnet version
4540
inputs:
4641
version: $(DotNetVersion)
4742

48-
- task: DotNetCoreCLI@2
49-
displayName: restore packages
50-
inputs:
51-
command: "restore"
52-
projects: "*.sln"
53-
43+
# "restore" is run automatically by "build"
5444
- task: DotNetCoreCLI@2
5545
displayName: build
5646
inputs:

.vsts/ci-myget-update.yml

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# CI build with the upload to MyGet
22

33
variables:
4-
DotNetVersion: "2.1.402"
4+
DotNetVersion: "2.2.101"
55

66
trigger:
77
branches:
@@ -10,32 +10,22 @@ trigger:
1010
- develop
1111

1212
queue: Hosted VS2017
13+
1314
steps:
1415
- task: DotNetCoreInstaller@0
1516
displayName: force use of desired dotnet version
1617
inputs:
1718
version: $(DotNetVersion)
1819

20+
# "build" and "restore" are run by "pack".
1921
- task: DotNetCoreCLI@2
20-
displayName: restore packages
21-
inputs:
22-
command: "restore"
23-
projects: "*.sln"
24-
25-
- task: DotNetCoreCLI@2
26-
displayName: build solution (Release)
27-
inputs:
28-
command: "build"
29-
projects: "*.sln"
30-
arguments: "--configuration Release"
31-
32-
- task: DotNetCoreCLI@2
33-
displayName: pack solution (Release)
22+
displayName: pack solution with symbols (Release)
3423
inputs:
3524
command: "pack"
3625
projects: "*.sln"
3726
configuration: 'Release'
3827
packDirectory: '$(build.artifactStagingDirectory)'
28+
buildProperties: "SymbolPackageFormat=snupkg"
3929

4030
- task: DotNetCoreCLI@2
4131
displayName: test
@@ -46,21 +36,14 @@ steps:
4636

4737
- task: PublishTestResults@2
4838

49-
- task: DotNetCoreCLI@1
50-
displayName: publish
51-
inputs:
52-
command: "publish"
53-
publishWebProjects: "True"
54-
arguments: "--configuration Release --output $(build.artifactstagingdirectory)"
55-
zipAfterPublish: "True"
56-
5739
- task: NuGetCommand@2
5840
displayName: 'Publish nugets to MyGet'
5941
inputs:
6042
command: push
6143
nuGetFeedType: external
6244
publishFeedCredentials: 'myget-open-census'
6345

46+
# this task is required as symbols packages needs to be published manually.
6447
- task: PublishBuildArtifacts@1
6548
inputs:
6649
PathtoPublish: "$(build.artifactstagingdirectory)"

0 commit comments

Comments
 (0)