mirror of
https://github.com/plausible/analytics.git
synced 2024-12-27 03:21:37 +03:00
d1b703f007
* Get stats from clickhosue * Pull stats from clickhouse * Use correct Query namespace * Use Clickhouse in unit tests * Use Clickhouse in stats controller tests * Use fixtures for unit tests * Add Clickhouse to travis * Use Clickhouse session store for sessions * Add garbage collection to session store * Reload session state from Clickhouse on server restart * Query from sessions table * Trap exits in event write buffer * Run hydration without starting the whole app * Make session length 30 minutes * Revert changes to fingerprint schema * Remove clickhouse from fingerprint sessions * Flush buffers before shutdown * Use old stats when merging * Remove old session schema * Fix tests with CH sessions * Add has_pageviews? to Stats
14 lines
403 B
YAML
14 lines
403 B
YAML
language: elixir
|
|
elixir: '1.7.4'
|
|
otp_release: '21.1'
|
|
services:
|
|
- postgresql
|
|
- docker
|
|
before_install:
|
|
- echo "CREATE DATABASE plausible_test" > $HOME/init.sql
|
|
- docker pull yandex/clickhouse-server
|
|
- docker run -d -p 8123:8123 --ulimit nofile=262144:262144 --volume=$HOME/init.sql:/docker-entrypoint-initdb.d/init.sql yandex/clickhouse-server
|
|
env:
|
|
- MIX_ENV=test
|
|
script: mix coveralls.travis
|