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
be1202d5
Unverified
Commit
be1202d5
authored
Dec 28, 2020
by
James Lamb
Committed by
GitHub
Dec 28, 2020
Browse files
[ci] remove unused CI checks (#3688)
parent
e95468cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
.ci/setup.sh
.ci/setup.sh
+2
-2
.ci/test.sh
.ci/test.sh
+2
-2
.vsts-ci.yml
.vsts-ci.yml
+2
-3
No files found.
.ci/setup.sh
View file @
be1202d5
...
@@ -43,13 +43,13 @@ else # Linux
...
@@ -43,13 +43,13 @@ else # Linux
chmod
+x cmake.sh
chmod
+x cmake.sh
./cmake.sh
--prefix
=
/usr/local
--exclude-subdir
./cmake.sh
--prefix
=
/usr/local
--exclude-subdir
fi
fi
if
[[
$
TRAVIS
==
"true"
]]
||
[[
$GITHUB_ACTIONS
==
"tru
e"
]]
;
then
if
[[
$
SETUP_CONDA
!=
"fals
e"
]]
;
then
wget
-q
-O
conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
wget
-q
-O
conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
fi
fi
fi
fi
if
[[
"
${
TASK
:0:9
}
"
!=
"r-package"
]]
;
then
if
[[
"
${
TASK
:0:9
}
"
!=
"r-package"
]]
;
then
if
[[
$
TRAVIS
==
"true"
]]
||
[[
$OS_NAME
==
"macos
"
]]
;
then
if
[[
$
SETUP_CONDA
!=
"false
"
]]
;
then
sh conda.sh
-b
-p
$CONDA
sh conda.sh
-b
-p
$CONDA
fi
fi
conda config
--set
always_yes
yes
--set
changeps1 no
conda config
--set
always_yes
yes
--set
changeps1 no
...
...
.ci/test.sh
View file @
be1202d5
...
@@ -18,7 +18,7 @@ source activate $CONDA_ENV
...
@@ -18,7 +18,7 @@ source activate $CONDA_ENV
cd
$BUILD_DIRECTORY
cd
$BUILD_DIRECTORY
if
[[
$TRAVIS
==
"true"
]]
&&
[[
$TASK
==
"check-docs"
]]
;
then
if
[[
$TASK
==
"check-docs"
]]
;
then
cd
$BUILD_DIRECTORY
/docs
cd
$BUILD_DIRECTORY
/docs
conda
install
-q
-y
-n
$CONDA_ENV
-c
conda-forge doxygen
conda
install
-q
-y
-n
$CONDA_ENV
-c
conda-forge doxygen
pip
install
--user
-r
requirements.txt rstcheck git+git://github.com/linkchecker/linkchecker.git@b9390c9ef63f7e1e210b48bc7fe97f76e8d39501
pip
install
--user
-r
requirements.txt rstcheck git+git://github.com/linkchecker/linkchecker.git@b9390c9ef63f7e1e210b48bc7fe97f76e8d39501
...
@@ -41,7 +41,7 @@ if [[ $TRAVIS == "true" ]] && [[ $TASK == "check-docs" ]]; then
...
@@ -41,7 +41,7 @@ if [[ $TRAVIS == "true" ]] && [[ $TASK == "check-docs" ]]; then
exit
0
exit
0
fi
fi
if
[[
$TRAVIS
==
"true"
]]
&&
[[
$TASK
==
"lint"
]]
;
then
if
[[
$TASK
==
"lint"
]]
;
then
conda
install
-q
-y
-n
$CONDA_ENV
\
conda
install
-q
-y
-n
$CONDA_ENV
\
pycodestyle
\
pycodestyle
\
pydocstyle
\
pydocstyle
\
...
...
.vsts-ci.yml
View file @
be1202d5
...
@@ -8,6 +8,7 @@ trigger:
...
@@ -8,6 +8,7 @@ trigger:
pr
:
pr
:
-
master
-
master
variables
:
variables
:
AZURE
:
'
true'
PYTHON_VERSION
:
3.8
PYTHON_VERSION
:
3.8
CONDA_ENV
:
test-env
CONDA_ENV
:
test-env
resources
:
resources
:
...
@@ -20,6 +21,7 @@ jobs:
...
@@ -20,6 +21,7 @@ jobs:
###########################################
###########################################
variables
:
variables
:
COMPILER
:
gcc
COMPILER
:
gcc
SETUP_CONDA
:
'
false'
pool
:
pool
:
vmImage
:
'
ubuntu-latest'
vmImage
:
'
ubuntu-latest'
container
:
ubuntu1404
container
:
ubuntu1404
...
@@ -46,7 +48,6 @@ jobs:
...
@@ -46,7 +48,6 @@ jobs:
-
script
:
|
-
script
:
|
echo "##vso[task.setvariable variable=BUILD_DIRECTORY]$BUILD_SOURCESDIRECTORY"
echo "##vso[task.setvariable variable=BUILD_DIRECTORY]$BUILD_SOURCESDIRECTORY"
echo "##vso[task.setvariable variable=OS_NAME]linux"
echo "##vso[task.setvariable variable=OS_NAME]linux"
echo "##vso[task.setvariable variable=AZURE]true"
echo "##vso[task.setvariable variable=LGB_VER]$(head -n 1 VERSION.txt)"
echo "##vso[task.setvariable variable=LGB_VER]$(head -n 1 VERSION.txt)"
echo "##vso[task.prependpath]$CONDA/bin"
echo "##vso[task.prependpath]$CONDA/bin"
AMDAPPSDK_PATH=$BUILD_SOURCESDIRECTORY/AMDAPPSDK
AMDAPPSDK_PATH=$BUILD_SOURCESDIRECTORY/AMDAPPSDK
...
@@ -86,7 +87,6 @@ jobs:
...
@@ -86,7 +87,6 @@ jobs:
-
script
:
|
-
script
:
|
echo "##vso[task.setvariable variable=BUILD_DIRECTORY]$BUILD_SOURCESDIRECTORY"
echo "##vso[task.setvariable variable=BUILD_DIRECTORY]$BUILD_SOURCESDIRECTORY"
echo "##vso[task.setvariable variable=OS_NAME]macos"
echo "##vso[task.setvariable variable=OS_NAME]macos"
echo "##vso[task.setvariable variable=AZURE]true"
echo "##vso[task.setvariable variable=LGB_VER]$(head -n 1 VERSION.txt)"
echo "##vso[task.setvariable variable=LGB_VER]$(head -n 1 VERSION.txt)"
CONDA=$AGENT_HOMEDIRECTORY/miniconda
CONDA=$AGENT_HOMEDIRECTORY/miniconda
echo "##vso[task.setvariable variable=CONDA]$CONDA"
echo "##vso[task.setvariable variable=CONDA]$CONDA"
...
@@ -122,7 +122,6 @@ jobs:
...
@@ -122,7 +122,6 @@ jobs:
steps
:
steps
:
-
powershell
:
|
-
powershell
:
|
Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
Write-Host "##vso[task.setvariable variable=AZURE]true"
displayName
:
'
Set
Variables'
displayName
:
'
Set
Variables'
-
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"
...
...
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