.travis.yml 1.37 KB
Newer Older
Guolin Ke's avatar
Guolin Ke committed
1
2
3
4
5
6
7
language: cpp
sudo: required
dist: trusty

before_install:
- test -n $CC  && unset CC
- test -n $CXX && unset CXX
Guolin Ke's avatar
Guolin Ke committed
8
9
10
11
12
13
- wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
- chmod +x conda.sh
- bash conda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
Guolin Ke's avatar
Guolin Ke committed
14
15

install:
wxchan's avatar
wxchan committed
16
- sudo apt-get install -y libopenmpi-dev openmpi-bin build-essential
17
- conda install --yes atlas numpy scipy scikit-learn pandas matplotlib
wxchan's avatar
wxchan committed
18
- pip install pep8
Guolin Ke's avatar
Guolin Ke committed
19
20
21
22
23


script:
- cd $TRAVIS_BUILD_DIR
- mkdir build && cd build && cmake .. && make -j
Guolin Ke's avatar
Guolin Ke committed
24
- cd $TRAVIS_BUILD_DIR/tests/c_api_test && python test.py
Guolin Ke's avatar
Guolin Ke committed
25
- cd $TRAVIS_BUILD_DIR/python-package && python setup.py install
wxchan's avatar
wxchan committed
26
- cd $TRAVIS_BUILD_DIR/tests/python_package_test && python test_basic.py && python test_engine.py && python test_sklearn.py && python test_plotting.py
wxchan's avatar
wxchan committed
27
- cd $TRAVIS_BUILD_DIR && pep8 --ignore=E501 .
Guolin Ke's avatar
Guolin Ke committed
28
- rm -rf build && mkdir build && cd build && cmake -DUSE_MPI=ON ..&& make -j
wxchan's avatar
wxchan committed
29
- cd $TRAVIS_BUILD_DIR/tests/c_api_test && python test.py
Guolin Ke's avatar
Guolin Ke committed
30
- cd $TRAVIS_BUILD_DIR/python-package && python setup.py install
wxchan's avatar
wxchan committed
31
- cd $TRAVIS_BUILD_DIR/tests/python_package_test && python test_basic.py && python test_engine.py && python test_sklearn.py && python test_plotting.py
Guolin Ke's avatar
Guolin Ke committed
32
33
34
35
36
37
38
39

notifications:
  email: false

matrix:
  include:
    - compiler: gcc
    - compiler: clang