-
Notifications
You must be signed in to change notification settings - Fork 625
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
Sam Harrison
committed
Apr 30, 2020
1 parent
d9fa0ad
commit 9e13083
Showing
6 changed files
with
45 additions
and
89 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
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
ARG version=latest | ||
FROM php:$version | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y zip | ||
|
||
RUN curl -s https://getcomposer.org/installer | php \ | ||
&& mv composer.phar /usr/local/bin/composer | ||
|
||
COPY prism/prism/nginx/cert.crt /usr/local/share/ca-certificates/cert.crt | ||
RUN update-ca-certificates | ||
|
||
WORKDIR /app | ||
COPY . . | ||
|
||
RUN make install |
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,16 +1,31 @@ | ||
.PHONY: clean install ci-install test bundle | ||
.PHONY: clean install ci-install test test-integ test-docker bundle | ||
|
||
clean: | ||
@rm -rf vendor composer.lock sendgrid-php.zip | ||
|
||
install: clean | ||
ifdef GIT_HUB_TOKEN | ||
composer config -g github-oauth.github.com $(GIT_HUB_TOKEN) | ||
endif | ||
|
||
composer install | ||
|
||
ifeq ($(dependencies), lowest) | ||
composer update --prefer-lowest --prefer-stable -n | ||
endif | ||
|
||
ci-install: clean | ||
composer install --no-dev | ||
|
||
test: install | ||
test: | ||
vendor/bin/phpunit test/unit --filter test* | ||
|
||
test-integ: test | ||
vendor/bin/phpunit test --filter test* | ||
|
||
test-docker: | ||
curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/prism/prism.sh | dependencies=lowest bash | ||
curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/prism/prism.sh | dependencies=highest bash | ||
|
||
bundle: ci-install | ||
zip -r sendgrid-php.zip . -x \*.git\* \*composer.json\* \*scripts\* \*test\* \*.travis.yml\* \*prism\* |
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
This file was deleted.
Oops, something went wrong.