-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
65 lines (52 loc) · 1.42 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
language: python
# ensure use container-based infrastructure for caching
sudo: false
python:
# - "2.6" # do we really need to test/support 2.6?
- "2.7"
- "3.3"
- "3.4"
# - "3.5" # 3.5 not available by default on travis-ci
addons:
apt:
packages:
- oracle-java8-installer
env:
# - FCREPO_VERSION=fedora-3.8.1
# - DJANGO_VERSION=">=1.5,<1.6"
- DJANGO="" # no django
# - DJANGO"Django>=1.6,<1.7"
- DJANGO="Django>=1.7,<1.8"
- DJANGO="Django>=1.8,<1.9"
- DJANGO="Django>=1.9,<1.10"
matrix:
exclude:
# python 3.3 not supported by django 1.9
- python: "3.3"
env: DJANGO="Django>=1.9,<1.10"
# if we enable py2.6, will need to restrict which django versions are tested
# - python: 2.6
# env: DJANGO="Django>=1.7,<1.8"
# env: DJANGO="Django>=1.8,<1.9"
# env: DJANGO="Django>=1.9,<1.10"
before_install:
- export FCREPO_VERSION=fedora-3.8.1
- export FCREPO_FOLDER=${HOME}/jfs/${FCREPO_VERSION}
- export JAVA_HOME=/usr/lib/jvm/java-8-oracle
- export PATH=$JAVA_HOME/bin:$PATH
install:
- ci/setup-fedora.sh
- pip install --upgrade setuptools
- pip install -e .
- pip install -e ".[test]"
- pip install -q $DJANGO
- pip install coveralls
- cp ci/testsettings.py test/localsettings.py
before_script:
- ci/start-fedora.sh
script:
nosetests test --with-coverage --cover-package=eulfedora --cover-xml --with-xunit
# tox
after_success:
- coveralls
cache: pip