mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-05 00:02:50 -04:00
* Codegen for openapi 474461f * Add and fix tests for the latest stripe-mock Some of the tests had to be changed/mocked because stripe-mock has a bug where the includable sub-lists it returns have the wrong url set. Because of this, when you call create/list/etc. on one of those sub-lists the calls fails due to that URL being incorrect. Moved one test to use charge+refund (auto-expanded) and another used a mock to have the right URL returned.
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
language: ruby
|
|
|
|
rvm:
|
|
- 2.3
|
|
- 2.4
|
|
- 2.5
|
|
- 2.6
|
|
- 2.7
|
|
- jruby-9.2.7.0
|
|
|
|
notifications:
|
|
email:
|
|
on_success: never
|
|
|
|
sudo: false
|
|
|
|
env:
|
|
global:
|
|
# If changing this number, please also change it in `test/test_helper.rb`.
|
|
- STRIPE_MOCK_VERSION=0.98.0
|
|
|
|
cache:
|
|
directories:
|
|
- stripe-mock
|
|
|
|
before_install:
|
|
# Unpack and start stripe-mock so that the test suite can talk to it
|
|
- |
|
|
if [ ! -d "stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}" ]; then
|
|
mkdir -p stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}/
|
|
curl -L "https://github.com/stripe/stripe-mock/releases/download/v${STRIPE_MOCK_VERSION}/stripe-mock_${STRIPE_MOCK_VERSION}_linux_amd64.tar.gz" -o "stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}_linux_amd64.tar.gz"
|
|
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_PID=$!
|
|
- export PATH="${PATH}:${PWD}/stripe-mock/stripe-mock_${STRIPE_MOCK_VERSION}"
|
|
|
|
script:
|
|
- bundle exec rake
|