forked from jfinkels/flask-restless
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.travis.yml
34 lines (26 loc) · 909 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
# Use Travis's container-based infrastructure.
dist: jammy
language: python
python:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
addons:
# HACK Need to update the installed version of PostgreSQL, because it doesn't
# implement all the network operators (specifically the &&
# operator). Travis claims that version 9.4 is installed by default, but it
# claims that && is unknown unless this addon is here.
postgresql: "9.4"
before_install:
# Determine whether we're using PyPy, as it determines which requirements
# file we will use.
- if (python --version 2>&1 | grep PyPy > /dev/null); then export REQUIREMENTS=requirements/test-pypy.txt; else export REQUIREMENTS=requirements/test-cpython.txt; fi
install:
- pip install --upgrade pip
- pip install -r $REQUIREMENTS
- pip install coveralls
script:
coverage run --source=flask_restless -m pytest tests/
after_success:
coveralls