-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
40 lines (40 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
language: python
cache: pip
python:
- '3.7'
notifications:
email: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install:
# Install poetry
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
- source $HOME/.poetry/env
# Install pybind11 (required for HDT backend)
- pip install pybind11
# Download & setup the WatDiv 10M dataset (in HDT format)
- wget -O watdiv.10M.hdt $WATDIV_LINK
- wget -O watdiv.10M.hdt.index.v1-1 $WATDIV_INDEX_LINK
- cp watdiv.10M.hdt tests/data/watdiv.10M.hdt
- cp watdiv.10M.hdt.index.v1-1 tests/data/watdiv.10M.hdt.index.v1-1
install:
- poetry install --extras "hdt postgres"
script:
# Ignore PostgreSQL tests, as it snot (yet) installed on Travis CI
- pytest --ignore=tests/database/postgre_backend_test.py
before_deploy:
# Build sphinx docs
- cd docs && make html
deploy:
# Deploy sphinx doc on Github pages
- provider: pages
github_token: $GITHUB_TOKEN
local_dir: docs/build/html
keep_history: true
skip_cleanup: true
on:
branch: master