forked from xzkostyan/clickhouse-sqlalchemy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (30 loc) · 928 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
env:
- VERSION=19.3.5
- VERSION=18.14.9
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
cache: pip
services:
- docker
before_install:
- if [ ! -z $DOCKER_PASSWORD ] ; then echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin ; fi
- docker run -d -p 127.0.0.1:9000:9000 -p 127.0.0.1:8123:8123 --name test-clickhouse-server --ulimit nofile=262144:262144 yandex/clickhouse-server:$VERSION
- docker ps -a
# Overriding setup.cfg. Set host=clickhouse-server
- sed -i 's/^host=localhost$/host=clickhouse-server/' setup.cfg
# Make host think that clickhouse-server is localhost
- echo '127.0.0.1 clickhouse-server' | sudo tee /etc/hosts > /dev/null
install:
- pip install --upgrade pip setuptools
- pip install flake8 flake8-print coveralls
before_script:
flake8
script:
coverage run --source=clickhouse_sqlalchemy setup.py test
after_success:
coveralls