Skip to content

Commit 0104c2b

Browse files
committed
chore: prepare GAX for monorepo (googleapis/gax-php#663)
1 parent 7c0517d commit 0104c2b

73 files changed

Lines changed: 906 additions & 933 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.

Gax/.gitattributes

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
.gitattributes export-ignore
22
.gitignore export-ignore
33
.github export-ignore
4-
dev export-ignore
54
tests export-ignore
6-
codecov.yml export-ignore
7-
ruleset.xml export-ignore
8-
.travis.yml export-ignore
5+
/*.dist export-ignore

Gax/README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,21 +73,13 @@ be found for Mac or Windows.
7373
3. Run tests.
7474

7575
```sh
76-
> composer test
76+
> vendor/bin/phpunit
7777
```
7878

79-
4. Updating dependencies after changing `composer.json`:
79+
4. Run static analysis tools
8080

8181
```sh
82-
> composer update
83-
`
84-
```
85-
86-
5. Formatting source:
87-
88-
```sh
89-
> composer cs-lint
90-
> composer cs-fix
82+
> phpstan -c phpstan.neon.dist
9183
```
9284

9385
## License

Gax/codecov.yml

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

Gax/composer.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,10 @@
3434
},
3535
"autoload-dev": {
3636
"psr-4": {
37-
"Google\\ApiCore\\Dev\\": "dev/src",
3837
"Google\\ApiCore\\Tests\\": "tests",
39-
"GPBMetadata\\Google\\": "metadata/Google",
38+
"Google\\ApiCore\\Testing\\": "tests/Unit/testdata/generated",
4039
"Google\\Showcase\\": "tests/Conformance/src",
4140
"GPBMetadata\\Google\\Showcase\\": "tests/Conformance/metadata"
4241
}
43-
},
44-
"scripts": {
45-
"regenerate-test-protos": "dev/sh/regenerate-test-protos.sh",
46-
"test": "./vendor/bin/phpunit",
47-
"cs-lint": "vendor/bin/php-tools cs-fixer googleapis/gax-php --ref $(git rev-parse --abbrev-ref HEAD) --flags \"\\-n --dry-run\"",
48-
"cs-fix": "vendor/bin/php-tools cs-fixer googleapis/gax-php --ref $(git rev-parse --abbrev-ref HEAD) --flags \"\\-n\""
4942
}
5043
}

Gax/dev/sh/build-protobuf-docs.sh

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

Gax/dev/sh/regenerate-test-protos.sh

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

Gax/dev/sh/test-composer-conflict.sh

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

Gax/dev/src/Docs/doctum-protobuf-config.php

Lines changed: 0 additions & 59 deletions
This file was deleted.
758 Bytes
Binary file not shown.

Gax/phpunit.xml.dist

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="tests/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" colors="true">
3-
<php>
4-
<env name="GOOGLE_APPLICATION_CREDENTIALS" value="tests/Unit/testdata/json-key-file.json"/>
5-
</php>
63
<coverage>
74
<include>
85
<directory suffix=".php">src/ApiCore</directory>

0 commit comments

Comments
 (0)