Skip to content

Commit dc2abcc

Browse files
authored
Merge pull request #2 from keboola/miro-docker
Update to php 7, added tests and latest coding standard
2 parents 4f9274a + 4d4dbb3 commit dc2abcc

21 files changed

Lines changed: 317 additions & 230 deletions

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
sudo: required
2+
3+
language: bash
4+
5+
services:
6+
- docker
7+
8+
script:
9+
- docker-compose run --rm tests
10+

DependencyInjection/Configuration.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

DependencyInjection/KeboolaGoogleClientExtension.php

Lines changed: 0 additions & 28 deletions
This file was deleted.

Dockerfile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
FROM php:7-cli
2+
3+
ARG COMPOSER_FLAGS="--prefer-dist --no-interaction"
4+
ARG DEBIAN_FRONTEND=noninteractive
5+
ENV COMPOSER_ALLOW_SUPERUSER 1
6+
ENV COMPOSER_PROCESS_TIMEOUT 3600
7+
8+
WORKDIR /code
9+
10+
COPY docker/php-prod.ini /usr/local/etc/php/php.ini
11+
COPY docker/composer-install.sh /tmp/composer-install.sh
12+
13+
# Deps
14+
RUN apt-get update
15+
RUN apt-get install -y --no-install-recommends \
16+
wget \
17+
curl \
18+
make \
19+
git \
20+
bzip2 \
21+
time \
22+
libzip-dev \
23+
zip \
24+
unzip \
25+
openssl \
26+
vim
27+
28+
# PHP
29+
RUN docker-php-ext-install sockets
30+
31+
# Composer
32+
RUN chmod +x /tmp/composer-install.sh && /tmp/composer-install.sh
33+
34+
# Main
35+
ADD . /code
36+
RUN composer install $COMPOSER_FLAGS

Exception/RestApiException.php

Lines changed: 0 additions & 13 deletions
This file was deleted.

KeboolaGoogleClientBundle.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Keboola\Google\ClientBundle;
46

57
use Symfony\Component\HttpKernel\Bundle\Bundle;

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Keboola, http://keboola.com
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Keboola Google API Client
2+
[![Build Status](https://travis-ci.org/keboola/google-client-bundle.svg?branch=master)](https://travis-ci.org/keboola/google-client-bundle)
3+
4+
Basic client for Google APIs

Resources/config/routing.yml

Whitespace-only changes.

Resources/config/services.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)