Added circle-ci file

This commit is contained in:
Walter Dal Mut
2015-06-28 10:02:13 +02:00
parent 3fd559fab2
commit 0e656fc39a
2 changed files with 24 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# InfluxDB PHP SDK
[![Build Status](https://travis-ci.org/corley/influxdb-php-sdk.svg?branch=master)](https://travis-ci.org/corley/influxdb-php-sdk)
[![Circle CI](https://circleci.com/gh/corley/influxdb-php-sdk/tree/master.svg?style=svg)](https://circleci.com/gh/corley/influxdb-php-sdk/tree/master)
[![Code Coverage](https://scrutinizer-ci.com/g/corley/influxdb-php-sdk/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/corley/influxdb-php-sdk/?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/corley/influxdb-php-sdk/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/corley/influxdb-php-sdk/?branch=master)
[![Latest Stable Version](https://poser.pugx.org/corley/influxdb-sdk/v/stable)](https://packagist.org/packages/corley/influxdb-sdk)
+23
View File
@@ -0,0 +1,23 @@
machine:
timezone:
Europe/Rome
php:
version: 5.6.5
dependencies:
pre:
- sudo apt-get update
- sudo apt-get install nginx
- wget https://s3.amazonaws.com/influxdb/influxdb_latest_amd64.deb
- sudo useradd influxdb
- sudo dpkg -i influxdb_latest_amd64.deb
- sudo cp ./scripts/influxdb_conf.toml /etc/opt/influxdb/influxdb.conf
- sudo /opt/influxdb/influxd -config /etc/opt/influxdb/influxdb.conf: {background: true}
- sudo cp scripts/nginx_proxy.conf /etc/nginx/conf.d/proxy.conf
- sudo service nginx restart
test:
override:
- vendor/bin/phpunit --coverage-clover clover.xml
post:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover clover.xml