forked from FilipeMaia/afnumpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
76 lines (65 loc) · 2.09 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
language: python
os: linux
dist: bionic
python:
- "2.7"
- "3.6"
notifications:
email: false
sudo: false
cache:
directories:
- $HOME/.cache/pip
- $HOME/arrayfire
- $HOME/arrayfire-python
- $HOME/local
addons:
apt:
# sources:
# - ubuntu-toolchain-r-test
# - kubuntu-backports
packages:
- libatlas-base-dev
- libfftw3-dev
- gcc
- g++
- cmake
- gdb
- apport
- libboost-all-dev
before_install:
- pip install codecov
- cd $HOME
- if [ ! -d "$HOME/arrayfire/.git" ]; then git clone --recursive https://github.com/arrayfire/arrayfire; else echo 'Using arrayfire from cached directory'; fi
- mkdir -p arrayfire/build && cd arrayfire/build
- git pull
- git submodule init
- git submodule update
- cmake -DAF_BUILD_CPU=ON -DAF_BUILD_CUDA=OFF -DAF_WITH_GRAPHICS=OFF -DAF_BUILD_OPENCL=OFF -DBUILD_TESTING=OFF -DAF_BUILD_EXAMPLES=OFF -DAF_BUILD_UNIFIED=ON -DCMAKE_INSTALL_PREFIX=${HOME}/local ..
- make -j 2
- make install
- export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${HOME}/local/lib
# Install arrayfire-python
- cd $HOME
- if [ ! -d "$HOME/arrayfire-python/.git" ]; then git clone https://github.com/arrayfire/arrayfire-python.git; else echo 'Using arrayfire-python from cached directory'; fi
- cd arrayfire-python
- git pull
- python setup.py install
install:
- pip install numpy
- pip install ipython
- pip install pytest-cov
- pip install pytest-benchmark
- cd ${HOME}/build/FilipeMaia/afnumpy
- python setup.py install
after_success:
- codecov
before_script:
# Set the core file limit to unlimited so a core file is generated upon crash
- ulimit -c unlimited -S
- ulimit -c
script:
- cd ${HOME}/build/FilipeMaia/afnumpy/tests
- coverage run --source afnumpy -m py.test --benchmark-skip -v --color=yes --showlocals --durations=10
- python -m pytest -v --benchmark-only --benchmark-compare --benchmark-autosave --benchmark-group-by=fullname
- for i in $(find ./ -maxdepth 1 -name 'core*' -print); do gdb python core* -ex "thread apply all bt" -ex "set pagination 0" -batch; done;