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
42b6322c
Unverified
Commit
42b6322c
authored
Dec 29, 2022
by
James Lamb
Committed by
GitHub
Dec 29, 2022
Browse files
[ci] speed up Windows jobs (fixes #5647) (#5648)
parent
3d33c756
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
12 deletions
+25
-12
.appveyor.yml
.appveyor.yml
+2
-0
.ci/test_windows.ps1
.ci/test_windows.ps1
+21
-12
.vsts-ci.yml
.vsts-ci.yml
+2
-0
No files found.
.appveyor.yml
View file @
42b6322c
...
...
@@ -36,6 +36,8 @@ install:
build
:
false
test_script
:
-
conda config --remove channels defaults
-
conda config --add channels nodefaults
-
conda config --add channels conda-forge
-
conda config --set channel_priority strict
-
conda init powershell
...
...
.ci/test_windows.ps1
View file @
42b6322c
...
...
@@ -25,16 +25,6 @@ if ($env:TASK -eq "cpp-tests") {
Exit
0
}
# setup for Python
conda
init
powershell
conda
activate
conda
config
--set
always_yes
yes
--set
changeps1
no
conda
update
-q
-y
conda
conda
create
-q
-y
-n
$
env
:
CONDA_ENV
"python=
$
env
:
PYTHON_VERSION
[build=*cpython]"
;
Check-Output
$?
if
(
$
env
:
TASK
-ne
"bdist"
)
{
conda
activate
$
env
:
CONDA_ENV
}
if
(
$
env
:
TASK
-eq
"swig"
)
{
$
env
:
JAVA_HOME
=
$
env
:
JAVA_HOME_8_X64
# there is pre-installed Eclipse Temurin 8 somewhere
$ProgressPreference
=
"SilentlyContinue"
# progress bar bug extremely slows down download speed
...
...
@@ -50,8 +40,27 @@ if ($env:TASK -eq "swig") {
Exit
0
}
# re-including python=version[build=*cpython] to ensure that conda doesn't fall back to pypy
conda
install
-q
-y
-n
$
env
:
CONDA_ENV
cloudpickle
joblib
matplotlib
numpy
pandas
psutil
pytest
"python=
$
env
:
PYTHON_VERSION
[build=*cpython]"
python-graphviz
scikit-learn
scipy
;
Check-Output
$?
# setup for Python
conda
init
powershell
conda
activate
conda
config
--set
always_yes
yes
--set
changeps1
no
conda
update
-q
-y
conda
conda
create
-q
-y
-n
$
env
:
CONDA_ENV
`
cloudpickle
`
joblib
`
matplotlib
`
numpy
`
pandas
`
psutil
`
pytest
`
"python=
$
env
:
PYTHON_VERSION
[build=*cpython]"
`
python-graphviz
`
scikit-learn
`
scipy
;
Check-Output
$?
if
(
$
env
:
TASK
-ne
"bdist"
)
{
conda
activate
$
env
:
CONDA_ENV
}
if
(
$
env
:
TASK
-eq
"regular"
)
{
mkdir
$
env
:
BUILD_SOURCESDIRECTORY
/build
;
cd
$
env
:
BUILD_SOURCESDIRECTORY
/build
...
...
.vsts-ci.yml
View file @
42b6322c
...
...
@@ -283,6 +283,8 @@ jobs:
condition
:
eq(variables['TASK'], 'bdist')
displayName
:
'
Install
OpenCL'
-
script
:
|
cmd /c "conda config --remove channels defaults"
cmd /c "conda config --add channels nodefaults"
cmd /c "conda config --add channels conda-forge"
cmd /c "conda config --set channel_priority strict"
cmd /c "conda init powershell"
...
...
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