Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
4b1669c4
Unverified
Commit
4b1669c4
authored
Oct 13, 2018
by
Nikita Titov
Committed by
GitHub
Oct 13, 2018
Browse files
[ci] build NuGet via built-in Azure tasks (#1753)
parent
108e80f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
.vsts-ci.yml
.vsts-ci.yml
+8
-10
No files found.
.vsts-ci.yml
View file @
4b1669c4
...
@@ -146,18 +146,16 @@ jobs:
...
@@ -146,18 +146,16 @@ jobs:
inputs
:
inputs
:
artifactName
:
PackageAssets
artifactName
:
PackageAssets
downloadPath
:
$(Build.SourcesDirectory)/binaries
downloadPath
:
$(Build.SourcesDirectory)/binaries
-
powershell
:
|
$client = new-object System.Net.WebClient
$client.DownloadFile("https://dist.nuget.org/win-x86-commandline/latest/nuget.exe", "$(Build.SourcesDirectory)/.nuget/nuget.exe")
displayName
:
'
Download
NuGet
application'
-
script
:
|
-
script
:
|
cd %BUILD_SOURCESDIRECTORY%/.nuget
python %BUILD_SOURCESDIRECTORY%/.nuget/create_nuget.py %BUILD_SOURCESDIRECTORY%/binaries/PackageAssets
python create_nuget.py %BUILD_SOURCESDIRECTORY%/binaries/PackageAssets
displayName
:
'
Create
NuGet
configuration
files'
nuget.exe pack LightGBM.nuspec
-
task
:
NuGetCommand@2
xcopy *.nupkg %BUILD_ARTIFACTSTAGINGDIRECTORY%
inputs
:
displayName
:
'
Build
NuGet
package'
command
:
pack
packagesToPack
:
'
$(Build.SourcesDirectory)/.nuget/*.nuspec'
packDestination
:
'
$(Build.ArtifactStagingDirectory)'
-
task
:
PublishBuildArtifacts@1
-
task
:
PublishBuildArtifacts@1
inputs
:
inputs
:
pathtoPublish
:
'
$(Build.ArtifactStagingDirectory)'
pathtoPublish
:
'
$(Build.ArtifactStagingDirectory)'
artifactName
:
Nu
g
et
artifactName
:
Nu
G
et
artifactType
:
container
artifactType
:
container
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment