Commit 44fcf16c authored by Guolin Ke's avatar Guolin Ke
Browse files

fix travis

parent 3051b771
......@@ -21,10 +21,12 @@ script:
- cd $TRAVIS_BUILD_DIR
- mkdir build && cd build && cmake .. && make -j
- cd $TRAVIS_BUILD_DIR/tests/c_api_test && python test.py
- cd $TRAVIS_BUILD_DIR/python-package && python setup.py install
- cd $TRAVIS_BUILD_DIR/tests/python_package_test && python test_basic.py
- cd $TRAVIS_BUILD_DIR
- rm -rf build && mkdir build && cd build && cmake -DUSE_MPI=ON ..&& make -j
- cd $TRAVIS_BUILD_DIR/tests/c_api_test && python test.py
- cd $TRAVIS_BUILD_DIR/python-package && python setup.py install
- cd $TRAVIS_BUILD_DIR/tests/python_package_test && python test_basic.py
notifications:
......
......@@ -15,9 +15,8 @@ try:
except ImportError:
pass
VERSION_FILE = os.path.join(os.path.dirname(__file__), 'VERSION')
with open(VERSION_FILE) as f:
__version__ = f.read().strip()
__version__ = 0.1
__all__ = ['Dataset', 'Booster',
'train', 'cv',
......
import numpy as np
from sklearn import datasets, metrics, model_selection
import importlib.util
spec = importlib.util.spec_from_file_location("module.name", "../../python-package/lightgbm/basic.py")
lgb = importlib.util.module_from_spec(spec)
spec.loader.exec_module(lgb)
import lightgbm as lgb
X, Y = datasets.make_classification(n_samples=100000, n_features=100)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment