language: - python # Currently Travis doesn't support multiple values for language variable # - cpp #compiler: # - gcc # not sure whether the following configuration will be available # with non-C/C++ language (e.g python) #cache: ccache cache: directories: - $HOME/.ccache python: - "2.7" - "3.4" - "3.5" - "3.6" env: global: # variables for caching - CCACHE_DIR=$HOME/.ccache - CCACHE_COMPILERCHECK=content - CCACHE_COMPRESS=true - CCACHE_NODISABLE=true - CCACHE_MAXSIZE=500M matrix: - GCC_VER=4.8 before_install: # we need latest pip to work with only-binary option - pip install -U pip - pip install -U wheel pytest pep8 pytest-forked - pip install -U numpy scipy tqdm --only-binary numpy,scipy # Right now we cannot use 1.1.0 version of Pandas # because it introduces bug with series indexing using tuples: # https://github.com/pandas-dev/pandas/issues/35534 - pip install -U 'pandas<1.1.0' --only-binary pandas - pip install -U protobuf # install boost - sudo add-apt-repository universe - sudo apt-get update - sudo apt-get install libboost-all-dev # configure ccache # code from https://github.com/urho3d/Urho3D/blob/master/.travis.yml - export PATH=$(whereis -b ccache |grep -o '\S*lib\S*'):$PATH - export CXX=g++ CC=gcc PATH=$HOME:$PATH install: - if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then ./codestyle_checks.sh; fi - mkdir build - pushd build && cmake .. && make -j2 && file ./bin/bigartm && popd - pushd python && python setup.py install && popd before_script: - pushd test_data && ./download_datasets.sh && popd script: - export ARTM_SHARED_LIBRARY=`pwd`/build/lib/libartm.so - export BIGARTM_UNITTEST_DATA=`pwd`/test_data - pushd build && make test ARGS="-V" && popd