-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
42 lines (37 loc) · 1.44 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
38
39
40
41
42
# see http://about.travis-ci.org/docs/user/languages/php/ for more hints
language: php
dist: precise
sudo: required
# list any PHP version you want to test against
php:
# using major version aliases
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
# execute any number of scripts before the test run, custom env's are available as variables
before_script:
- travis_retry composer self-update
- composer config notify-on-install false
- travis_retry composer update --no-interaction --prefer-source
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4
- echo "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" | sudo tee -a /etc/apt/sources.list
- sudo apt-get update -qq
- sudo apt-get install clickhouse-server clickhouse-client -y
- sudo sed -i -- 's/listen_host>::/listen_host>0.0.0.0/g' /etc/clickhouse-server/config.xml
- sudo service clickhouse-server start
- sudo netstat -ltn
- (tail -n 100 /var/log/clickhouse-server/clickhouse-server.err.log || exit 0)
- (tail -n 100 /var/log/clickhouse-server/clickhouse-server.log || exit 0)
- (id metrika || exit 0)
- (ls -la /opt/clickhouse/data/default/ || exit 0)
- (ls -la /opt/clickhouse/metadata/default/ || exit 0)
- curl -v "http://127.0.0.1:8123/"
# omitting "script:" will default to phpunit
script:
# - php -q run.php
- vendor/bin/phpunit --configuration phpunit.xml --coverage-clover=coverage.xml
after_success:
- bash <(curl -s https://codecov.io/bash)