forked from MontrealCorpusTools/PolyglotDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·57 lines (49 loc) · 1.1 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
language: python
python:
- 3.6
branches:
only:
- master
- develop
notifications:
email: false
dist: trusty
sudo: required
addons:
apt:
packages:
- oracle-java8-installer
- sox
before_install:
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
# install Neo4j locally:
#- sudo apt-get update && sudo apt-get install oracle-java8-installer
- export JAVA_HOME=/usr/lib/jvm/java-8-oracle
- bash continuous-integration/travis/install.sh
- ls -al $HOME/tools/autovot/autovot/bin
# Install packages
install:
- export PATH="$HOME/miniconda/miniconda/bin:$HOME/tools/autovot/autovot/bin:$PATH"
- source activate test-environment
- pip install -r requirements.txt
- which python
- conda list
- python bin/pgdb install -q
- python bin/pgdb start
# Run test
script:
- source activate test-environment
- coverage run --source=polyglotdb setup.py test
after_script:
- source activate test-environment
- python bin/pgdb stop
# Calculate coverage
after_success:
- coveralls
cache:
pip: true
apt: true
directories:
- $HOME/miniconda
- $HOME/tools