Skip to content

Commit

Permalink
Adjust .travis.yml for Ubuntu Trusty (#862)
Browse files Browse the repository at this point in the history
* Add Python 3.6 for testing
* Use default g++ (4.8) and libboost (1.54) in .travis.yml
* Build static bigartm executable on Travis CI
  • Loading branch information
JeanPaulShapo committed Jan 31, 2018
1 parent 678dec5 commit 5c2d8b8
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,12 @@ python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"

addons:
apt:
sources:
- boost-latest # for boost 1.55
- ubuntu-toolchain-r-test # for g++-4.9
- george-edison55-precise-backports # for cmake 3
packages:
- cmake
- cmake-data
- libboost1.55-all-dev
- g++-4.9
- gcc-4.9
- libboost1.54-all-dev

env:
global:
Expand All @@ -43,14 +36,14 @@ env:
- CCACHE_NODISABLE=true
- CCACHE_MAXSIZE=500M
matrix:
- GCC_VER=4.9
- 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
- pip install -U numpy scipy pandas tqdm --only-binary numpy scipy pandas
- pip install protobuf==3.0.0
- 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
Expand All @@ -60,7 +53,7 @@ before_install:
install:
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then ./codestyle_checks.sh; fi
- mkdir build
- pushd build && cmake -DBUILD_BIGARTM_CLI_STATIC=OFF .. && make -j2 && file ./bin/bigartm && popd
- pushd build && cmake .. && make -j2 && file ./bin/bigartm && popd
- pushd python && python setup.py install && popd

before_script:
Expand Down

0 comments on commit 5c2d8b8

Please sign in to comment.