summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 8f8d3385d6c731395ace1a25bf9b78e2a7727179 (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
42
43
44
45
46
# http://travis-ci.org/#!/RDFLib/rdflib
os: linux
arch:
 - amd64
 - ppc64le
language: python
branches:
  only:
    # only build master and release branches (merge request are built anyhow)
    - master
    - /^\d+\.\d+\.\d+(-.*)?$/
git:
  depth: 3

python:
    - 3.6
    - 3.7
    - 3.8

jobs:
  include:
    - python: 3.8
      dist: focal

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 -r requirements.dev.txt
    - pip install --default-timeout 60 coverage coveralls nose-timer && export HAS_COVERALLS=1
    - python setup.py install

before_script:
    - flake8 --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"