-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
37 lines (30 loc) · 1.15 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
language: python
services:
- docker
env:
- PYTHON_IMAGE=python:3.6 POSTGRES_IMAGE=postgres:11
- PYTHON_IMAGE=python:3.6 POSTGRES_IMAGE=postgres:12
- PYTHON_IMAGE=python:3.7 POSTGRES_IMAGE=postgres:11
- PYTHON_IMAGE=python:3.7 POSTGRES_IMAGE=postgres:12
- PYTHON_IMAGE=python:3.8 POSTGRES_IMAGE=postgres:11
- PYTHON_IMAGE=python:3.8 POSTGRES_IMAGE=postgres:12
# Configuration for bullseye
- PYTHON_IMAGE=python:3.9 POSTGRES_IMAGE=postgres:13
before_install:
- pip install codecov
install:
# We install only dev requirements because we only check formatting in the travis environment.
# The test suit is tested within a docker environment.
- pip install -r requirements/dev.txt
before_script:
# Connect to docker to have user-base dockerrate rate limit instead of by ip
- echo $DOCKERTOKEN | docker login --username $DOCKERUSER --password-stdin
- ./scripts/ci/build-docker-env.sh
script:
# Check for black and isort formatting, stop travis on fail
- ./scripts/ci/check-formatting.sh || travis_terminate 1;
# Run the test suit
- ./scripts/ci/run-tests-with-docker.sh
after_success:
# Report coverage results to codecov.io
- codecov