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
16751b38
Unverified
Commit
16751b38
authored
Jul 01, 2019
by
Nikita Titov
Committed by
GitHub
Jul 01, 2019
Browse files
[ci] downgrade conda (#2245)
* Update .appveyor.yml * Update .vsts-ci.yml * Update setup.sh
parent
62935f52
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
.appveyor.yml
.appveyor.yml
+2
-2
.ci/setup.sh
.ci/setup.sh
+1
-1
.vsts-ci.yml
.vsts-ci.yml
+1
-1
No files found.
.appveyor.yml
View file @
16751b38
...
@@ -28,7 +28,7 @@ install:
...
@@ -28,7 +28,7 @@ install:
-
set PATH=%MINICONDA%;%MINICONDA%\Scripts;%PATH%
-
set PATH=%MINICONDA%;%MINICONDA%\Scripts;%PATH%
-
ps
:
$env:LGB_VER = (Get-Content VERSION.txt).trim()
-
ps
:
$env:LGB_VER = (Get-Content VERSION.txt).trim()
-
conda config --set always_yes yes --set changeps1 no
-
conda config --set always_yes yes --set changeps1 no
-
conda
update
-q -y conda
-
conda
install
-q -y conda
=4.6.14
# temp fix, change to update later
-
conda create -q -y -n test-env python=%PYTHON_VERSION% matplotlib numpy pandas psutil pytest python-graphviz scikit-learn scipy
-
conda create -q -y -n test-env python=%PYTHON_VERSION% matplotlib numpy pandas psutil pytest python-graphviz scikit-learn scipy
-
activate test-env
-
activate test-env
-
set PATH=%CONDA_PREFIX%\Library\bin\graphviz;%PATH%
# temp graphviz hotfix
-
set PATH=%CONDA_PREFIX%\Library\bin\graphviz;%PATH%
# temp graphviz hotfix
...
@@ -44,7 +44,7 @@ test_script:
...
@@ -44,7 +44,7 @@ test_script:
-
pytest %APPVEYOR_BUILD_FOLDER%\tests\python_package_test
-
pytest %APPVEYOR_BUILD_FOLDER%\tests\python_package_test
-
cd %APPVEYOR_BUILD_FOLDER%\examples\python-guide
-
cd %APPVEYOR_BUILD_FOLDER%\examples\python-guide
-
ps
:
>-
-
ps
:
>-
@("import matplotlib", "matplotlib.use('Agg')") +(Get-Content "plot_example.py") | Set-Content"plot_example.py" # prevent interactive window mode
@("import matplotlib", "matplotlib.use('Agg')") +
(Get-Content "plot_example.py") | Set-Content
"plot_example.py" # prevent interactive window mode
(Get-Content "plot_example.py").replace('graph.render(view=True)', 'graph.render(view=False)') | Set-Content "plot_example.py"
(Get-Content "plot_example.py").replace('graph.render(view=True)', 'graph.render(view=False)') | Set-Content "plot_example.py"
-
ps
:
>-
-
ps
:
>-
foreach ($file in @(Get-ChildItem *.py)) {
foreach ($file in @(Get-ChildItem *.py)) {
...
...
.ci/setup.sh
View file @
16751b38
...
@@ -57,4 +57,4 @@ if [[ $TRAVIS == "true" ]] || [[ $OS_NAME == "macos" ]]; then
...
@@ -57,4 +57,4 @@ if [[ $TRAVIS == "true" ]] || [[ $OS_NAME == "macos" ]]; 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
conda
update
-q
conda
conda
install
-q
-y
conda
=
4.6.14
# temp fix, change to update later
.vsts-ci.yml
View file @
16751b38
...
@@ -127,7 +127,7 @@ jobs:
...
@@ -127,7 +127,7 @@ jobs:
-
powershell
:
Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
-
powershell
:
Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName
:
Enable conda
displayName
:
Enable conda
-
script
:
|
-
script
:
|
conda
update
-q -y conda
conda
install
-q -y conda
=4.6.14
conda create -q -y -n %CONDA_ENV% python=%PYTHON_VERSION% matplotlib numpy pandas psutil pytest python-graphviz scikit-learn scipy
conda create -q -y -n %CONDA_ENV% python=%PYTHON_VERSION% matplotlib numpy pandas psutil pytest python-graphviz scikit-learn scipy
cmd /c "activate %CONDA_ENV% & powershell -ExecutionPolicy Bypass -File %BUILD_SOURCESDIRECTORY%/.ci/test_windows.ps1"
cmd /c "activate %CONDA_ENV% & powershell -ExecutionPolicy Bypass -File %BUILD_SOURCESDIRECTORY%/.ci/test_windows.ps1"
displayName
:
Test
displayName
:
Test
...
...
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