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

fix travis

parent 3051b771
...@@ -21,10 +21,12 @@ script: ...@@ -21,10 +21,12 @@ script:
- cd $TRAVIS_BUILD_DIR - cd $TRAVIS_BUILD_DIR
- mkdir build && cd build && cmake .. && make -j - mkdir build && cd build && cmake .. && make -j
- cd $TRAVIS_BUILD_DIR/tests/c_api_test && python test.py - 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/tests/python_package_test && python test_basic.py
- cd $TRAVIS_BUILD_DIR - cd $TRAVIS_BUILD_DIR
- rm -rf build && mkdir build && cd build && cmake -DUSE_MPI=ON ..&& make -j - 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/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/tests/python_package_test && python test_basic.py
notifications: notifications:
......
...@@ -15,9 +15,8 @@ try: ...@@ -15,9 +15,8 @@ try:
except ImportError: except ImportError:
pass pass
VERSION_FILE = os.path.join(os.path.dirname(__file__), 'VERSION')
with open(VERSION_FILE) as f: __version__ = 0.1
__version__ = f.read().strip()
__all__ = ['Dataset', 'Booster', __all__ = ['Dataset', 'Booster',
'train', 'cv', 'train', 'cv',
......
import numpy as np import numpy as np
from sklearn import datasets, metrics, model_selection from sklearn import datasets, metrics, model_selection
import importlib.util import lightgbm as lgb
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)
X, Y = datasets.make_classification(n_samples=100000, n_features=100) 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