Unverified Commit 35a2a2e3 authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[ci] place all CI helpers under the .ci folder and use - instead of _ in their names (#6581)

parent 2f60e115
...@@ -20,7 +20,7 @@ jobs: ...@@ -20,7 +20,7 @@ jobs:
- name: Trigger R valgrind tests - name: Trigger R valgrind tests
if: github.event.comment.body == '/gha run r-valgrind' if: github.event.comment.body == '/gha run r-valgrind'
run: | run: |
$GITHUB_WORKSPACE/.ci/trigger_dispatch_run.sh \ $GITHUB_WORKSPACE/.ci/trigger-dispatch-run.sh \
"${{ github.event.issue.pull_request.url }}" \ "${{ github.event.issue.pull_request.url }}" \
"${{ github.event.comment.id }}" \ "${{ github.event.comment.id }}" \
"gha_run_r_valgrind" "gha_run_r_valgrind"
...@@ -28,7 +28,7 @@ jobs: ...@@ -28,7 +28,7 @@ jobs:
- name: Trigger update R configure - name: Trigger update R configure
if: github.event.comment.body == '/gha run r-configure' if: github.event.comment.body == '/gha run r-configure'
run: | run: |
$GITHUB_WORKSPACE/.ci/trigger_dispatch_run.sh \ $GITHUB_WORKSPACE/.ci/trigger-dispatch-run.sh \
"${{ github.event.issue.pull_request.url }}" \ "${{ github.event.issue.pull_request.url }}" \
"${{ github.event.comment.id }}" \ "${{ github.event.comment.id }}" \
"gha_run_r_configure" "gha_run_r_configure"
...@@ -328,7 +328,7 @@ jobs: ...@@ -328,7 +328,7 @@ jobs:
git clean -d -f -x git clean -d -f -x
displayName: 'Clean source directory' displayName: 'Clean source directory'
- script: | - script: |
cmd /c "powershell -ExecutionPolicy Bypass -File %BUILD_SOURCESDIRECTORY%/.ci/install_opencl.ps1" cmd /c "powershell -ExecutionPolicy Bypass -File %BUILD_SOURCESDIRECTORY%/.ci/install-opencl.ps1"
condition: eq(variables['TASK'], 'bdist') condition: eq(variables['TASK'], 'bdist')
displayName: 'Install OpenCL' displayName: 'Install OpenCL'
- script: | - script: |
...@@ -337,7 +337,7 @@ jobs: ...@@ -337,7 +337,7 @@ jobs:
cmd /c "conda config --add channels conda-forge" cmd /c "conda config --add channels conda-forge"
cmd /c "conda config --set channel_priority strict" cmd /c "conda config --set channel_priority strict"
cmd /c "conda init powershell" cmd /c "conda init powershell"
cmd /c "powershell -ExecutionPolicy Bypass -File %BUILD_SOURCESDIRECTORY%/.ci/test_windows.ps1" cmd /c "powershell -ExecutionPolicy Bypass -File %BUILD_SOURCESDIRECTORY%/.ci/test-windows.ps1"
displayName: Test displayName: Test
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
condition: and(succeeded(), in(variables['TASK'], 'regular', 'bdist', 'swig'), not(startsWith(variables['Build.SourceBranch'], 'refs/pull/'))) condition: and(succeeded(), in(variables['TASK'], 'regular', 'bdist', 'swig'), not(startsWith(variables['Build.SourceBranch'], 'refs/pull/')))
...@@ -419,7 +419,7 @@ jobs: ...@@ -419,7 +419,7 @@ jobs:
artifactName: R-package artifactName: R-package
downloadPath: $(Build.SourcesDirectory)/R downloadPath: $(Build.SourcesDirectory)/R
- script: | - script: |
python "$(Build.SourcesDirectory)/.nuget/create_nuget.py" "$(Build.SourcesDirectory)/binaries/PackageAssets" python "$(Build.SourcesDirectory)/.ci/create-nuget.py" "$(Build.SourcesDirectory)/binaries/PackageAssets"
displayName: 'Create NuGet configuration files' displayName: 'Create NuGet configuration files'
- task: NuGetCommand@2 - task: NuGetCommand@2
inputs: inputs:
......
.. List of parameters is auto generated by LightGBM\helpers\parameter_generator.py from LightGBM\include\LightGBM\config.h file. .. List of parameters is auto generated by LightGBM\.ci\parameter-generator.py from LightGBM\include\LightGBM\config.h file.
.. role:: raw-html(raw) .. role:: raw-html(raw)
:format: html :format: html
......
...@@ -6,7 +6,7 @@ and `Breathe <https://breathe.readthedocs.io/>`__, which works on top of `Doxyge ...@@ -6,7 +6,7 @@ and `Breathe <https://breathe.readthedocs.io/>`__, which works on top of `Doxyge
List of parameters and their descriptions in `Parameters.rst <./Parameters.rst>`__ List of parameters and their descriptions in `Parameters.rst <./Parameters.rst>`__
is generated automatically from comments in `config file <https://github.com/microsoft/LightGBM/blob/master/include/LightGBM/config.h>`__ is generated automatically from comments in `config file <https://github.com/microsoft/LightGBM/blob/master/include/LightGBM/config.h>`__
by `this script <https://github.com/microsoft/LightGBM/blob/master/helpers/parameter_generator.py>`__. by `this script <https://github.com/microsoft/LightGBM/blob/master/.ci/parameter-generator.py>`__.
After each commit on ``master``, documentation is updated and published to `Read the Docs <https://lightgbm.readthedocs.io/>`__. After each commit on ``master``, documentation is updated and published to `Read the Docs <https://lightgbm.readthedocs.io/>`__.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Licensed under the MIT License. See LICENSE file in the project root for license information. * Licensed under the MIT License. See LICENSE file in the project root for license information.
* *
* \note * \note
* This file is auto generated by LightGBM\helpers\parameter_generator.py from LightGBM\include\LightGBM\config.h file. * This file is auto generated by LightGBM\.ci\parameter-generator.py from LightGBM\include\LightGBM\config.h file.
*/ */
#include<LightGBM/config.h> #include<LightGBM/config.h>
namespace LightGBM { namespace LightGBM {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment