forked from ClimbsRocks/auto_ml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (36 loc) · 1.39 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
sudo: required
dist: trusty
language: python
python:
- "2.7"
- "3.5"
# Command to install dependencies
install:
- TEST_DIR=$PWD
- sudo apt-get update
# Install LightGBM
- sudo apt-get install -y libopenmpi-dev openmpi-bin build-essential
- git clone --recursive https://github.com/Microsoft/LightGBM LightGBM
- cd LightGBM && mkdir build && cd build && cmake .. && make -j
# Exit out of the build dir up a level to where python-package is
- cd ..
# We need scipy installed to get the python version of lightgbm.
- pip install --upgrade pip
- pip install --only-binary=numpy,scipy numpy scipy
# Install the python part of LightGBM now that we have scipy
- cd python-package
- python setup.py install
# Move back to the directory we want to run our tests in, out of the LightGBM build directories
- cd $TEST_DIR
- pip install coveralls
- pip install -r requirements.txt
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.1-cp27-none-linux_x86_64.whl;
elif [[ "$TRAVIS_PYTHON_VERSION" == "3.5" ]]; then
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.1-cp35-cp35m-linux_x86_64.whl;
fi
- pip install keras
# Command to run tests
script: nosetests -v --with-coverage --cover-package auto_ml tests
after_success:
coveralls