Skip to content

Commit

Permalink
Embed OpenAPI files and start stripe-mock from test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe committed Dec 18, 2018
1 parent 98851f9 commit edc57d7
Show file tree
Hide file tree
Showing 6 changed files with 54,536 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
global:
# If changing this number, please also change it in `test/test_helper.rb`.
- STRIPE_MOCK_VERSION=0.39.0
- STRIPE_MOCK_PORT=12111

cache:
directories:
Expand All @@ -32,7 +33,11 @@ before_install:
tar -zxf "stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}_linux_amd64.tar.gz" -C "stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}/"
fi
- |
stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}/stripe-mock > /dev/null &
stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}/stripe-mock \
-http-port ${STRIPE_MOCK_PORT} \
-spec test/openapi/spec3.json \
-fixtures test/openapi/fixtures3.json \
> /dev/null &
STRIPE_MOCK_PID=$!
script:
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ group :development do
gem "mocha", "~> 0.13.2"
gem "rake"
gem "shoulda-context"
gem "subprocess"
gem "test-unit"
gem "timecop"
gem "webmock"
Expand Down
Loading

0 comments on commit edc57d7

Please sign in to comment.