forked from bigartm/bigartm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (54 loc) · 1.61 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
sudo: false
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"
addons:
apt:
packages:
- libboost1.54-all-dev
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 pytest pep8 wheel pytest-forked
- pip install -U numpy scipy pandas tqdm --only-binary numpy,scipy,pandas
- pip install -U protobuf
# 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++-$GCC_VER CC=gcc-$GCC_VER
- for compiler in gcc g++; do ln -s $(which ccache) $HOME/$compiler-$GCC_VER; done && export 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