.travis.yml 1.21 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:
Guolin Ke's avatar
Guolin Ke committed
16
17
- sudo apt-get install -y libopenmpi-dev openmpi-bin build-essential 
- conda install --yes atlas numpy scipy scikit-learn
Guolin Ke's avatar
Guolin Ke committed
18
19
20
21
22


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

notifications:
  email: false

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