-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
84 lines (73 loc) · 1.56 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
dist: trusty
python:
- 3.5
branches:
only:
- master
- develop
notifications:
email: false
addons:
apt:
packages:
- libgl1-mesa-dri
- libegl1-mesa
- cmake
- xorg-dev
- libglu1-mesa-dev
- mercurial
- libdbus-1-dev
- libgl1-mesa-dev
- libglu1-mesa-dev
- libpulse-dev
- libx11-dev
- libxcursor-dev
- libxext-dev
- libxi-dev
- libxinerama-dev
- libxrandr-dev
- libxss-dev
- libxt-dev
- libxv-dev
- libxxf86vm-dev
- libasound2-dev
- libts-dev
- libudev-dev
env:
- PYTEST_QT_API=pyqt5
jdk:
- oraclejdk7
before_install:
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
- sudo apt-get update
- sudo apt-get install -y xvfb
# install Neo4j locally:
- bash continuous-integration/travis/install.sh
- ls $HOME/neo4j/neo4j
# Install packages
install:
- export PATH="$HOME/miniconda/miniconda/bin:$PATH"
- source activate test-environment
- which python
- conda list
before_script:
- export DISPLAY=:99.0
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render
# Run test
script:
- $HOME/neo4j/neo4j/bin/neo4j start
- sleep 10
- $HOME/neo4j/neo4j/bin/neo4j status
- coverage run --source=speechtools setup.py test
# Calculate coverage
after_success:
- coveralls
cache:
apt: true
pip: true
directories:
- $HOME/miniconda
- $HOME/neo4j