-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
FROM quay.io/twirphp/go-dependencies as godeps | ||
FROM quay.io/twirphp/build | ||
|
||
FROM quay.io/twirphp/php-base | ||
WORKDIR /go/src/github.com/twirphp/twirp | ||
|
||
COPY --from=godeps /go/bin/clientcompat /usr/bin | ||
COPY --from=godeps /go/bin/client /usr/bin | ||
COPY --from=godeps /go/bin/server /usr/bin | ||
COPY . . | ||
|
||
COPY . /app | ||
|
||
RUN php composer.phar install | ||
RUN set -xe \ | ||
&& composer install \ | ||
&& dep ensure -vendor-only | ||
|
||
CMD ["echo", "Please see the readme for help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
|
||
**Work in progress! First estimated preview: end of April** | ||
|
||
|
||
## Installation | ||
|
||
Download the [latest](https://github.com/twirphp/twirp/releases/latest) release from the Releases page | ||
|
@@ -86,6 +87,19 @@ $ docker build -t twirphp . | |
``` | ||
|
||
|
||
## Tests | ||
|
||
The following set of commands runs the complete test suite for the project: | ||
|
||
```bash | ||
$ docker run --rm -it twirphp go test -v ./protoc-gen-twirp_php/... | ||
$ docker run --rm -it twirphp vendorphp/bin/phpunit -v | ||
$ docker run --rm -it twirphp ./gen.sh | ||
$ docker run --rm -it twirphp vendorphp/bin/phpunit -v --group example | ||
$ docker run --rm -it twirphp clientcompat -client clientcompat/compat.sh | ||
``` | ||
|
||
|
||
## Security | ||
|
||
If you discover any security related issues, please contact us at [[email protected]](mailto:[email protected]). | ||
|