-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
64 lines (61 loc) · 1.69 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
language: python
python:
- "2.7"
os: linux
dist: xenial
sudo: true
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake-data
- cmake
- g++-7
- libpython3-dev
- python3-numpy
- python3-numpy-dbg
- python3-tk
#- libeigen3-dev
- libboost-python-dev
- libboost-test-dev
before_install:
- wget http://bitbucket.org/eigen/eigen/get/3.3.4.tar.bz2
- mv 3.3.4.tar.bz2 eigen3.3.4.tar.bz2
- tar -xvf eigen3.3.4.tar.bz2
- rm eigen3.3.4.tar.bz2
- mv eigen-eigen-* eigen
- export Eigen3_ROOT=`pwd`/eigen
# have to use pre-installed python 3.5, specifying 3.5 installs a different version that has no headers and makes the
# cpp module build fail
#python:
# - "3.5"
before_script:
# set up eigen 3.4
- wget https://bootstrap.pypa.io/get-pip.py
- python3 --version
- sudo -H python3 get-pip.py
- python3 -m pip --version
- python3 -m pip install --user -r requirements.txt
# TODO: fix the bug in scikit-tensor installer (maybe?) to allow it to be added to requirements.txt for pip
- python3 -m pip install --user git+https://github.com/mnick/scikit-tensor.git
- mkdir -p ~/.config/matplotlib/
- touch ~/.config/matplotlib/matplotlibrc
- 'echo "backend : agg" > ~/.config/matplotlib/matplotlibrc'
script:
# build C++ module
- export CXX=g++-7
- ${CXX} --version
- cmake --version
- git submodule update --init
- cd cpp
- mkdir build
- cd build
- cmake -DHUNTER_ENABLED=OFF -DEIGEN3_INCLUDE_DIR=${Eigen3_ROOT} ..
- make
- sudo make install
- cd ../..
# run python tests
- python3 -m pytest tests
install:
- echo "placeholder install script (to disable default)"