Skip to content

Commit 2d1c06f

Browse files
chore: add prism file
1 parent 7eafe18 commit 2d1c06f

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ __pycache__
2626
example.pdf
2727
TODO.txt
2828
twilio.env
29-
prism*

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ test-integ: test
1818

1919
version ?= latest
2020
test-docker:
21-
curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/HEAD/prism/prism.sh -o prism.sh
2221
version=$(version) bash ./prism.sh
2322

2423
clean: nopyc

prism.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
set -e
3+
4+
rm -rf prism && mkdir -p prism && cd prism
5+
git clone --depth 1 https://github.com/sendgrid/sendgrid-oai .
6+
cd prism
7+
8+
docker-compose build --parallel
9+
10+
if [ -z "$command" ]; then
11+
docker-compose up --force-recreate --abort-on-container-exit --remove-orphans
12+
else
13+
docker-compose run helper-runner "$command"
14+
docker-compose down
15+
fi

0 commit comments

Comments
 (0)