Skip to content

Commit

Permalink
Merge branch 'tests'
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark committed Apr 14, 2018
2 parents ee74f2a + b21f477 commit 401d8b5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Dockerfile
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"]
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]).
Expand Down

0 comments on commit 401d8b5

Please sign in to comment.