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
d0088c55
"...git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "d93eb338481be57e9a94d0aa742d978322d03cda"
Commit
d0088c55
authored
Jun 09, 2018
by
Nikita Titov
Committed by
Guolin Ke
Jun 09, 2018
Browse files
[ci] run all examples at Appveyor (#1432)
parent
0a3d4de7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
.appveyor.yml
.appveyor.yml
+11
-3
No files found.
.appveyor.yml
View file @
d0088c55
...
@@ -15,7 +15,7 @@ clone_depth: 50
...
@@ -15,7 +15,7 @@ clone_depth: 50
install
:
install
:
-
git submodule update --init --recursive
# get `compute` folder
-
git submodule update --init --recursive
# get `compute` folder
-
set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
#
D
elete sh.exe from PATH (mingw32-make fix)
-
set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
#
d
elete sh.exe from PATH (mingw32-make fix)
-
set PATH=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%
-
set PATH=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%
-
set PYTHON_VERSION=%CONFIGURATION%
-
set PYTHON_VERSION=%CONFIGURATION%
-
ps
:
>-
-
ps
:
>-
...
@@ -30,7 +30,7 @@ install:
...
@@ -30,7 +30,7 @@ install:
-
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 conda
-
conda update -q conda
-
conda create -q -n test-env python=%PYTHON_VERSION% numpy nose scipy scikit-learn pandas matplotlib pytest
-
conda create -q -n test-env python=%PYTHON_VERSION% numpy nose scipy scikit-learn pandas matplotlib
python-graphviz
pytest
-
activate test-env
-
activate test-env
build_script
:
build_script
:
...
@@ -48,8 +48,16 @@ test_script:
...
@@ -48,8 +48,16 @@ test_script:
pip install lightgbm-%LGB_VER%.tar.gz -v)
pip install lightgbm-%LGB_VER%.tar.gz -v)
-
cd ../..
-
cd ../..
-
pytest tests/python_package_test
-
pytest tests/python_package_test
-
cd examples/python-guide
-
ps
:
>-
@("import matplotlib", "matplotlib.use('Agg')") +(Get-Content "plot_example.py") | Set-Content"plot_example.py" # prevent interactive window mode
-
ps
:
>-
foreach ($file in @(Get-ChildItem *.py)) {
python $file
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
} # run all examples
-
IF "%COMPILER%"=="MINGW" appveyor exit
# skip all further steps
-
IF "%COMPILER%"=="MINGW" appveyor exit
# skip all further steps
-
cd python-package && python setup.py bdist_wheel --plat-name=win-amd64 --universal
-
cd
../../
python-package && python setup.py bdist_wheel --plat-name=win-amd64 --universal
after_test
:
after_test
:
-
cd ../.nuget
-
cd ../.nuget
...
...
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