setup.sh 479 Bytes
Newer Older
Tianqi Chen committed
1 2
#!/bin/bash

3 4
if [ ${TASK} == "python_test" ] || [ ${TASK} == "all_test" ]; then
    if [ ${TRAVIS_OS_NAME} == "osx" ]; then
5 6
        brew update
        brew install python3
7 8
        python -m pip install --user nose numpy cython
        python3 -m pip install --user nose numpy cython
Tianqi Chen committed
9 10 11
    fi
fi

12 13 14 15
if [ ${TASK} == "lint" ] || [ ${TASK} == "all_test" ]; then
    if [ ! ${TRAVIS_OS_NAME} == "osx" ]; then
        pip install --user cpplint 'pylint==1.4.4' 'astroid==1.3.6'
    fi
Tianqi Chen committed
16
fi