Skip to content

Commit 1bc50f2

Browse files
authored
Merge pull request #124 from keboola/zajca-pst-1434
Native types manifest support
2 parents ad6e244 + 32cc1a8 commit 1bc50f2

76 files changed

Lines changed: 2777 additions & 1785 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Build image and run tests
2727
run: |
2828
docker build -t $APP_IMAGE .
29-
docker run -e CLIENT_ID -e CLIENT_SECRET -e ACCESS_TOKEN -e REFRESH_TOKEN -e VIEW_ID -e KBC_URL -e KBC_TOKEN -e KBC_COMPONENTID $APP_IMAGE composer ci
29+
docker run -e KBC_DATA_TYPE_SUPPORT=none -e CLIENT_ID -e CLIENT_SECRET -e ACCESS_TOKEN -e REFRESH_TOKEN -e VIEW_ID -e KBC_URL -e KBC_TOKEN -e KBC_COMPONENTID $APP_IMAGE composer ci
3030
- name: Push image to ECR
3131
run: |
3232
docker pull quay.io/keboola/developer-portal-cli-v2:latest

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.4-cli
1+
FROM php:8.3-cli
22

33
ARG COMPOSER_FLAGS="--prefer-dist --no-interaction"
44
ARG DEBIAN_FRONTEND=noninteractive
@@ -9,6 +9,7 @@ WORKDIR /code/
99

1010
COPY docker/php-prod.ini /usr/local/etc/php/php.ini
1111
COPY docker/composer-install.sh /tmp/composer-install.sh
12+
COPY patches /code/patches
1213

1314
RUN apt-get update && apt-get install -y --no-install-recommends \
1415
locales \

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ Clone this repository and init the workspace with following command
159159
```
160160
git clone git@github.com:keboola/google-analytics-extractor.git
161161
cd google-analytics-extractor
162-
docker-compose build
163-
docker-compose run --rm dev composer install --no-interaction
162+
docker compose build
163+
docker compose run --rm dev composer install --no-interaction
164164
```
165165

166166
You will need working OAuth credentials.
@@ -182,7 +182,7 @@ VIEW_ID=
182182
Run the test suite using this command:
183183

184184
```
185-
docker-compose run --rm dev composer tests
185+
docker compose run --rm dev composer tests
186186
```
187187

188188

composer.json

Lines changed: 82 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,85 @@
11
{
2-
"name": "keboola/google-analytics-extractor",
3-
"license": "MIT",
4-
"type": "project",
5-
"description": "Keboola Google Analytics Extractor",
6-
"keywords": ["keboola", "google", "analytics", "extractor"],
7-
"require": {
8-
"php": "^7.4",
9-
"ext-json": "*",
10-
"keboola/common-exceptions": "^1.1",
11-
"keboola/csv": "^1.1",
12-
"keboola/google-client-bundle": "^5.4",
13-
"keboola/php-component": "^9.4",
14-
"keboola/storage-api-client": "^12.9",
15-
"symfony/config": "^5.2",
16-
"symfony/finder": "^5.2",
17-
"symfony/process": "^5.2"
18-
},
19-
"require-dev": {
20-
"keboola/coding-standard": "^9.0",
21-
"keboola/datadir-tests": "^5.3",
22-
"php-parallel-lint/php-parallel-lint": "^1.2",
23-
"phpstan/phpstan": "^0.12.59",
24-
"phpunit/phpunit": "^9.5"
25-
},
26-
"autoload": {
27-
"psr-4": {
28-
"Keboola\\GoogleAnalyticsExtractor\\": "src/",
29-
"Keboola\\": ["src/Keboola/", "tests/Keboola/"]
30-
}
31-
},
32-
"autoload-dev": {
33-
"psr-4": {
34-
"Keboola\\GoogleAnalyticsExtractor\\Tests\\": "tests/phpunit/",
35-
"Keboola\\GoogleAnalyticsExtractor\\Functional\\": "tests/functional/"
36-
}
37-
},
38-
"scripts": {
39-
"tests-phpunit": "phpunit",
40-
"tests-datadir": "phpunit tests/functional",
41-
"tests": [
42-
"@tests-phpunit",
43-
"@tests-datadir"
2+
"name": "keboola/google-analytics-extractor",
3+
"license": "MIT",
4+
"type": "project",
5+
"description": "Keboola Google Analytics Extractor",
6+
"keywords": [
7+
"keboola",
8+
"google",
9+
"analytics",
10+
"extractor"
4411
],
45-
46-
"phpstan": "phpstan analyse ./src ./tests --level=max --no-progress -c phpstan.neon",
47-
"phpcs": "phpcs -n --ignore=vendor --extensions=php .",
48-
"phpcbf": "phpcbf -n --ignore=vendor --extensions=php .",
49-
"phplint": "parallel-lint -j 10 --exclude vendor .",
50-
"build": [
51-
"@phplint",
52-
"@phpcs",
53-
"@phpstan",
54-
"@tests"
55-
],
56-
"ci": [
57-
"@composer validate --no-check-publish --no-check-all",
58-
"@build"
59-
]
60-
},
61-
"config": {
62-
"sort-packages": true,
63-
"optimize-autoloader": true
64-
}
12+
"require": {
13+
"php": "^8.3",
14+
"ext-json": "*",
15+
"keboola/common-exceptions": "^1.1",
16+
"keboola/csv": "^1.1",
17+
"keboola/google-client-bundle": "^5.4",
18+
"keboola/php-component": "^10.1",
19+
"keboola/storage-api-client": "^12.9",
20+
"symfony/config": "^5.2",
21+
"symfony/finder": "^5.2",
22+
"symfony/process": "^5.2"
23+
},
24+
"require-dev": {
25+
"cweagans/composer-patches": "^1.7",
26+
"keboola/coding-standard": "^15.0",
27+
"keboola/datadir-tests": "^5.3",
28+
"php-parallel-lint/php-parallel-lint": "^1.2",
29+
"phpstan/phpstan": "^1.11",
30+
"phpunit/phpunit": "^9.5",
31+
"symplify/vendor-patches": "^11.3"
32+
},
33+
"autoload": {
34+
"psr-4": {
35+
"Keboola\\GoogleAnalyticsExtractor\\": "src/",
36+
"Keboola\\": [
37+
"src/Keboola/",
38+
"tests/Keboola/"
39+
]
40+
}
41+
},
42+
"autoload-dev": {
43+
"psr-4": {
44+
"Keboola\\GoogleAnalyticsExtractor\\Tests\\": "tests/phpunit/",
45+
"Keboola\\GoogleAnalyticsExtractor\\Functional\\": "tests/functional/"
46+
}
47+
},
48+
"scripts": {
49+
"tests-phpunit": "phpunit --testdox",
50+
"tests-datadir": "phpunit tests/functional",
51+
"tests": [
52+
"@tests-phpunit",
53+
"@tests-datadir"
54+
],
55+
"phpstan": "phpstan analyse ./src ./tests --level=max --no-progress -c phpstan.neon",
56+
"phpcs": "phpcs -n --ignore=vendor --extensions=php .",
57+
"phpcbf": "phpcbf -n --ignore=vendor --extensions=php .",
58+
"phplint": "parallel-lint -j 10 --exclude vendor .",
59+
"build": [
60+
"@phplint",
61+
"@phpcs",
62+
"@phpstan",
63+
"@tests"
64+
],
65+
"ci": [
66+
"@composer validate --no-check-publish --no-check-all",
67+
"@build"
68+
]
69+
},
70+
"config": {
71+
"sort-packages": true,
72+
"optimize-autoloader": true,
73+
"allow-plugins": {
74+
"dealerdirect/phpcodesniffer-composer-installer": true,
75+
"cweagans/composer-patches": true
76+
}
77+
},
78+
"extra": {
79+
"patches": {
80+
"keboola/csv": [
81+
"patches/keboola-csv-src-keboola-csv-csvfile-php.patch"
82+
]
83+
}
84+
}
6585
}

0 commit comments

Comments
 (0)