summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 2d2ada1da53d238d4de0f4f76c9e152e550839c7 (plain)
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
# http://travis-ci.org/#!/RDFLib/rdflib
language: python
branches:
  only:
    # only build master and release branches (merge request are built anyhow)
    - master
    - /^\d+\.\d+\.\d+(-.*)?$/
git:
  depth: 3

python:
    - 3.5
    - 3.6
    - 3.7

jobs:
  include:
    - python: 3.8
      dist: xenial

before_install:
    - pip install -U setuptools pip  # seems travis comes with a too old setuptools for html5lib
    - bash .travis.fuseki_install_optional.sh

install:
    - pip install --default-timeout 60 -r requirements.txt
    - pip install --default-timeout 60 coverage coveralls nose-timer && export HAS_COVERALLS=1
    - python setup.py install

before_script:
    - flake8 --exclude=pyRdfa,extras,host,transform,rdfs,sparql,results,pyMicrodata --exit-zero rdflib

script:
    - PYTHONWARNINGS=default nosetests --with-timer --timer-top-n 42 --with-coverage --cover-tests --cover-package=rdflib

after_success:
    - if [[ $HAS_COVERALLS ]] ; then coveralls ; fi

notifications:
    irc:
        channels: "chat.freenode.net#rdflib"