Commit 193d2805 authored by Joe Hoyle's avatar Joe Hoyle
Browse files

Merge pull request #18 from humanmade/codecov

Add codecov to travis
parents c00c5da4 d4e8a481
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -3,6 +3,9 @@
# Tell Travis CI we're using PHP
language: php

notifications:
  email: false

php:
  - 5.5

@@ -17,3 +20,11 @@ matrix:
# Clones WordPress and configures our testing environment.
before_script:
  - bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 $WP_VERSION
  - printf "\n" | pecl install imagick

script:
  - phpunit --coverage-clover clover.xml

after_script:
  # Push coverage off to Codecov
  - bash <(curl -s https://codecov.io/bash)
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ S3-Uploads
==========

[![Build Status](https://travis-ci.org/humanmade/S3-Uploads.svg?branch=master)](https://travis-ci.org/humanmade/S3-Uploads)
[![codecov.io](http://codecov.io/github/humanmade/S3-Uploads/coverage.svg?branch=master)](http://codecov.io/github/humanmade/S3-Uploads?branch=master)

WordPress plugin to store uploads on S3. S3-Uploads aims to be a lightweight "drop-in" for storing uploads on Amazon S3 instead of the local filesystem.

+11 −12
Original line number Diff line number Diff line
@@ -12,14 +12,13 @@
					<directory prefix="test-" suffix=".php">tests</directory>
			</testsuite>
	</testsuites>

	<filter>
		<blacklist>
			<directory suffix=".php">.</directory>
		</blacklist>
		<whitelist>
			<directory suffix=".php">./lib</directory>
			<file>./plugin.php</file>
			<directory suffix=".php">./inc</directory>
			<file>./s3-uploads.php</file>
			<exclude>
				<directory suffix=".php">./inc/aws-sdk</directory>
			</exclude>
		</whitelist>
	</filter>
</phpunit>