-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
51 lines (41 loc) · 1014 Bytes
/
.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
language: python
# ensure use container-based infrastructure for caching
sudo: false
python:
# - "2.6"
- "2.7"
addons:
apt:
packages:
- oracle-java8-installer
# versions of django to test against
env:
- DJANGO="" # no django
- DJANGO="Django>=1.7,<1.8"
- DJANGO="Django>=1.8,<1.9"
- DJANGO="Django>=1.9,<1.10"
before_install:
- export EXIST_DB_VERSION=eXist-2.2
- export EXIST_DB_FOLDER=${HOME}/exist/${EXIST_DB_VERSION}
- export JAVA_HOME=/usr/lib/jvm/java-8-oracle
install:
- ci/setup-existdb.sh
- pip install -e .
- pip install -e ".[test]"
- pip install -q $DJANGO
- pip install -q coveralls
- cp ci/testsettings.py test/localsettings.py
before_script:
- ci/start-existdb.sh
script:
nosetests test/ --with-coverage --cover-package=eulexistdb --cover-xml --with-xunit
after_success:
- coveralls
- cd ${EXIST_DB_FOLDER}
- bin/shutdown.sh
# caching exist to speed up tests
before_cache:
- ci/teardown-db.sh
cache:
directories:
- ${HOME}/exist