appveyor.yml 1.13 KB
Newer Older
Guolin Ke's avatar
Guolin Ke committed
1
2
3
4
5
6
7
8
9
10
11
12
13

version: 1.0.{build}
environment:
  matrix:
    - PYTHON: "C:/Python36-x64"
      PYTHON_VERSION: 3.6
      MINICONDA: "C:/Miniconda36-x64"

clone_depth: 50

init:
  - "ECHO %PYTHON_VERSION% %MINICONDA%"

Guolin Ke's avatar
Guolin Ke committed
14
15
build_script:
  - mkdir build && cd build
Guolin Ke's avatar
Guolin Ke committed
16
  - cmake -DCMAKE_GENERATOR_PLATFORM=x64 .. && cmake --build . --target ALL_BUILD --config Release
Guolin Ke's avatar
Guolin Ke committed
17
18
19
  - cd ..

test_script:
Guolin Ke's avatar
Guolin Ke committed
20
21
22
23
24
25
  - "set PATH=%MINICONDA%;%MINICONDA%/Scripts;%PATH%"
  - conda config --set always_yes yes --set changeps1 no
  - conda update -q conda
  - conda info -a
  - conda install --yes numpy scipy scikit-learn pandas matplotlib
  - pip install pep8 pytest
Guolin Ke's avatar
Guolin Ke committed
26
  - cd python-package && python setup.py install --precompile && cd ..
Guolin Ke's avatar
Guolin Ke committed
27
28
29
  - pytest tests/c_api_test/test.py
  - pytest tests/python_package_test
  - pep8 --ignore=E501 --exclude=./compute,./docs .
Guolin Ke's avatar
Guolin Ke committed
30
31
32
33
34
35
  - "set /p LGB_VER=< VERSION.txt"
  - cd python-package && python setup.py sdist --formats gztar
  - cd dist 
  - "pip install lightgbm-%LGB_VER%.tar.gz -v"
  - cd ../..
  - pytest tests/python_package_test
Guolin Ke's avatar
Guolin Ke committed
36
37
38
39
40
41

nuget:
  project_feed: true
artifacts:
- path: Release/lib_lightgbm.dll
  name: Library
Guolin Ke's avatar
Guolin Ke committed
42
43
- path: Release/lightgbm.exe
  name: Exe