This repository has been archived by the owner on Mar 6, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
84 lines (68 loc) · 3.08 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
language: python
sudo: true
python: 2.7
dist: precise
branches:
only:
- master
os:
- linux
compiler:
- gcc
before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y # ppa to install both g++-4.9, gcc-4.9
- sudo apt-get update -qq
- sudo add-apt-repository ppa:boost-latest/ppa -y # ppa to install the boost version 1.55
- sudo apt-get update -qq
- sudo apt-get install libboost1.55-dev libboost-filesystem1.55-dev libboost-locale1.55-dev # install boost (including locale and boost-system)
- sudo apt-get -qq install gcc-4.9
- sudo apt-get -qq install g++-4.9
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 90
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 90
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.9 90
- sudo apt-get install libopenblas-dev libblas-dev libarpack++2-dev liblapack-dev # armadillo requirements
- pip install -r requirements.txt
- pip install pytest codecov pytest-cov
- sudo apt-get update
install:
#- sudo apt-get install -qq cmake
- wget https://cmake.org/files/v3.8/cmake-3.8.0-rc4.tar.gz # install cmake
- tar xzvf cmake-3.8.0-rc4.tar.gz
- cd cmake-3.8.0-rc4/
- ./bootstrap
- make -j4
- sudo make install
- cd ..
- wget http://sourceforge.net/projects/arma/files/armadillo-7.800.2.tar.xz # download, build, install the latest armadillo version
- tar xf armadillo-7.800.2.tar.xz
- cd armadillo-7.800.2/
- cmake .
- make
- sudo make install
- cd ..
- pip --version
- cython --version
- python setup.py install
#- find . -name '*.py[odc]' -type f -delete
#- find . -name '__pycache__' -type d -delete
#- rm -rf *.egg-info .cache .eggs build dist
#- pip install coveralls
# 23-12-2017 : error with pytest probably related with '.pyc', '_cache_' files / folder that are created when each file of pytest is run. See also,
# https://github.com/pytest-dev/pytest/issues/2042
script: # 23-12-17 : comment this [ tests work locally but not on travis ]
#- py.test
- py.test -v --cov-config .coveragerc # 23-12-17 : comment this [ tests work locally but not on travis ]
#- python setup.py install && py.test
# In all other cases (than - py.test -v --cov-config .coveragerc) it returns: Coverage.py warning: No data was collected, see:
# http://stackoverflow.com/questions/34665433/coverage-py-cant-collect-any-data-for-coveralls-failing-in-travis,
# http://stackoverflow.com/questions/18573542/coverage-py-does-not-cover-script-if-py-test-executes-it-from-another-directory
# http://luc.lino-framework.org/blog/2013/0307.html
#- py.test --cov=textTinyPy
#- py.test -v --cov-config .coveragerc --cov textTinyPy test/
after_success: # 23-12-17 : comment this [ tests work locally but not on travis ]
#- coveralls
- codecov # 23-12-17 : comment this [ tests work locally but not on travis ]
notifications:
email:
on_success: change
on_failure: change