forked from piskvorky/gensim
-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
53 lines (39 loc) · 1.15 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
sudo: false
cache:
apt: true
directories:
- $HOME/.cache/pip
- $HOME/.ccache
- $HOME/.pip-cache
dist: trusty
language: python
env:
TOX_PARALLEL_NO_SPINNER: 1
matrix:
include:
- python: '3.6'
env: TOXENV="flake8,flake8-docs"
- python: '3.8'
env:
- TOXENV="py38-linux"
dist: bionic
- python: '3.7'
env:
- TOXENV="py37-linux"
# The following two lines used to be necessary because Travis left files lying around in ~/.aws/,
# messing up our tests. Now fixed since https://github.com/travis-ci/travis-ci/issues/7940
# - BOTO_CONFIG="/dev/null"
#sudo: true
dist: xenial
- python: '3.6'
env: TOXENV="py36-linux"
install:
- pip install tox
- sudo apt-get install -y gdb
before_script:
- ulimit -c unlimited -S # enable core dumps
script: tox -vv
after_failure:
- pwd
- COREFILE=$(find . -maxdepth 1 -name "core*" | head -n 1)
- if [[ -f "$COREFILE" ]]; then EXECFILE=$(gdb -c "$COREFILE" -batch | grep "Core was generated" | tr -d "\`" | cut -d' ' -f5); file "$COREFILE"; gdb -c "$COREFILE" "$EXECFILE" -x continuous_integration/debug.gdb -batch; fi