django-clickhouse/.travis.yml

98 lines
2.7 KiB
YAML
Raw Normal View History

2019-06-27 15:12:39 +03:00
dist: xenial
2019-06-26 16:27:57 +03:00
sudo: required
language: python
cache:
pip: true
apt: true
services:
- postgresql
- redis-server
addons:
postgresql: "11"
apt:
sources:
- sourceline: "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/"
2019-06-27 15:12:39 +03:00
- sourceline: "deb https://packages.erlang-solutions.com/ubuntu xenial contrib"
key_url: "https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc"
- sourceline: "deb https://dl.bintray.com/rabbitmq/debian xenial main"
key_url: "https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc"
2019-06-26 16:27:57 +03:00
packages:
- dirmngr
- apt-transport-https
2019-06-27 15:12:39 +03:00
- postgresql-contrib-9.6
2019-06-26 16:27:57 +03:00
- postgresql-10
2019-06-27 15:12:39 +03:00
- postgresql-contrib-10
2019-06-26 16:27:57 +03:00
- postgresql-client-10
- postgresql-11
2019-06-27 15:12:39 +03:00
- postgresql-contrib-11
2019-06-26 16:27:57 +03:00
- postgresql-client-11
2020-02-07 11:06:23 +03:00
- postgresql-12
- postgresql-contrib-12
- postgresql-client-12
2019-06-26 16:27:57 +03:00
- unzip
2019-06-27 15:12:39 +03:00
- rabbitmq-server
2019-06-26 16:27:57 +03:00
python:
- 3.6
- 3.7
- 3.8
2019-06-26 16:27:57 +03:00
env:
2019-06-27 15:14:32 +03:00
- PG=9.6 DJANGO=2.1
- PG=10 DJANGO=2.1
- PG=11 DJANGO=2.1
- PG=12 DJANGO=2.1
2019-06-27 15:14:32 +03:00
- PG=9.6 DJANGO=2.2
- PG=10 DJANGO=2.2
- PG=11 DJANGO=2.2
- PG=12 DJANGO=2.2
- PG=9.6 DJANGO=3.0
- PG=10 DJANGO=3.0
- PG=11 DJANGO=3.0
- PG=12 DJANGO=3.0
2019-06-26 16:27:57 +03:00
before_install:
2019-06-27 14:58:22 +03:00
# Use default PostgreSQL 11 port
- sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/11/main/postgresql.conf
- sudo cp /etc/postgresql/{10,11}/main/pg_hba.conf
2019-06-26 16:27:57 +03:00
- sudo sed -i 's/port = 5434/port = 5432/' /etc/postgresql/12/main/postgresql.conf
- sudo cp /etc/postgresql/{10,12}/main/pg_hba.conf
2019-06-26 16:27:57 +03:00
# Start PostgreSQL version we need
- sudo systemctl stop postgresql
- sudo systemctl start postgresql@$PG-main
2019-06-26 16:27:57 +03:00
# ClickHouse sources
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E0C56BD4
- sudo apt-get update
install:
# Install ClickHouse
2019-06-27 15:14:32 +03:00
- sudo apt-get install clickhouse-client clickhouse-server clickhouse-common-static
2019-06-26 16:27:57 +03:00
- sudo service clickhouse-server restart
- pip install -r requirements-test.txt
2019-06-27 14:51:26 +03:00
- pip install -q Django==$DJANGO.*
2019-06-26 16:27:57 +03:00
- python setup.py -q install
before_script:
# Output software versions
- erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell
- rabbitmqctl status | grep "RabbitMQ"
- clickhouse-client --query "SELECT version();"
- psql -tc 'SHOW server_version' -U postgres
- psql -tc 'SHOW server_version' -U postgres
- psql -c 'CREATE ROLE test;' -U postgres
- psql -c 'ALTER ROLE test WITH SUPERUSER;' -U postgres
- psql -c 'ALTER ROLE test WITH LOGIN;' -U postgres
- psql -c "ALTER ROLE test PASSWORD 'test';" -U postgres
- psql -c 'CREATE DATABASE test OWNER test;' -U postgres
- psql -c 'CREATE DATABASE test2 OWNER test;' -U postgres
script:
python runtests.py