Skip to content

Commit

Permalink
Merge pull request #389 from stripe/ob-stripe-mock
Browse files Browse the repository at this point in the history
Start using stripe-mock for tests
  • Loading branch information
ob-stripe authored Dec 15, 2017
2 parents 595c946 + a5fc107 commit ef7e0a8
Show file tree
Hide file tree
Showing 87 changed files with 3,048 additions and 3,415 deletions.
21 changes: 20 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
language: php
sudo: false

language: php

matrix:
include:
- php: 5.3
Expand Down Expand Up @@ -41,6 +42,24 @@ matrix:
cache:
directories:
- $HOME/.composer/cache/files
- stripe-mock

env:
global:
- STRIPE_MOCK_VERSION=0.5.0

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=$!
script: ./build.php ${AUTOLOAD}

after_script: ./vendor/bin/coveralls -v
Loading

0 comments on commit ef7e0a8

Please sign in to comment.