@@ -137,7 +137,12 @@ jobs:
137
137
filePath : $(Build.SourcesDirectory)/.ci/test.sh
138
138
targetType : filePath
139
139
- task : PublishBuildArtifacts@1
140
- condition : and(succeeded(), in(variables['TASK'], 'regular', 'sdist', 'bdist', 'swig'), not(startsWith(variables['Build.SourceBranch'], 'refs/pull/')))
140
+ condition : >
141
+ and(
142
+ succeeded(),
143
+ in(variables['TASK'], 'regular', 'sdist', 'bdist', 'swig'),
144
+ not(startsWith(variables['Build.SourceBranch'], 'refs/pull/'))
145
+ )
141
146
inputs :
142
147
pathtoPublish : ' $(Build.ArtifactStagingDirectory)'
143
148
artifactName : PackageAssets
@@ -279,7 +284,12 @@ jobs:
279
284
/bin/bash $BUILD_DIRECTORY/docker-script.sh
280
285
displayName: 'Setup and run tests'
281
286
- task : PublishBuildArtifacts@1
282
- condition : and(succeeded(), in(variables['TASK'], 'bdist'), not(startsWith(variables['Build.SourceBranch'], 'refs/pull/')))
287
+ condition : >
288
+ and(
289
+ succeeded(),
290
+ in(variables['TASK'], 'bdist'),
291
+ not(startsWith(variables['Build.SourceBranch'], 'refs/pull/'))
292
+ )
283
293
inputs :
284
294
pathtoPublish : ' $(Build.ArtifactStagingDirectory)'
285
295
artifactName : PackageAssets
@@ -332,7 +342,12 @@ jobs:
332
342
filePath : $(Build.SourcesDirectory)/.ci/test.sh
333
343
targetType : filePath
334
344
- task : PublishBuildArtifacts@1
335
- condition : and(succeeded(), in(variables['TASK'], 'regular', 'bdist', 'swig'), not(startsWith(variables['Build.SourceBranch'], 'refs/pull/')))
345
+ condition : >
346
+ and(
347
+ succeeded(),
348
+ in(variables['TASK'], 'regular', 'bdist', 'swig'),
349
+ not(startsWith(variables['Build.SourceBranch'], 'refs/pull/'))
350
+ )
336
351
inputs :
337
352
pathtoPublish : ' $(Build.ArtifactStagingDirectory)'
338
353
artifactName : PackageAssets
@@ -377,7 +392,12 @@ jobs:
377
392
cmd /c "powershell -ExecutionPolicy Bypass -File %BUILD_SOURCESDIRECTORY%/.ci/test-windows.ps1"
378
393
displayName: Test
379
394
- task : PublishBuildArtifacts@1
380
- condition : and(succeeded(), in(variables['TASK'], 'regular', 'bdist', 'swig'), not(startsWith(variables['Build.SourceBranch'], 'refs/pull/')))
395
+ condition : >
396
+ and(
397
+ succeeded(),
398
+ in(variables['TASK'], 'regular', 'bdist', 'swig'),
399
+ not(startsWith(variables['Build.SourceBranch'], 'refs/pull/'))
400
+ )
381
401
inputs :
382
402
pathtoPublish : ' $(Build.ArtifactStagingDirectory)'
383
403
artifactName : PackageAssets
@@ -394,6 +414,7 @@ jobs:
394
414
- script : |
395
415
git clean -d -f -x
396
416
displayName: 'Clean source directory'
417
+ # yamllint disable rule:line-length
397
418
- script : |
398
419
LGB_VER=$(head -n 1 VERSION.txt | sed "s/rc/-/g")
399
420
R_LIB_PATH=~/Rlib
@@ -402,6 +423,7 @@ jobs:
402
423
RDscript -e "install.packages(c('R6', 'data.table', 'jsonlite', 'knitr', 'markdown', 'Matrix', 'RhpcBLASctl'), lib = '${R_LIB_PATH}', dependencies = c('Depends', 'Imports', 'LinkingTo'), repos = 'https://cran.rstudio.com', Ncpus = parallel::detectCores())" || exit 1
403
424
sh build-cran-package.sh --r-executable=RD || exit 1
404
425
mv lightgbm_${LGB_VER}.tar.gz $(Build.ArtifactStagingDirectory)/lightgbm-${LGB_VER}-r-cran.tar.gz
426
+ # yamllint enable rule:line-length
405
427
displayName: 'Build CRAN R-package'
406
428
- task : PublishBuildArtifacts@1
407
429
condition : succeeded()
0 commit comments