Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

GitHub owner #17

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# These owners will be the default owners for everything in the repo.
* @scottiecox
36 changes: 31 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,37 @@
language: php

# Added to support travis container infrastructure See http://docs.travis-ci.com/user/migrating-from-legacy/
sudo: false

# Added caching support to speed up builds!
cache:
directories:
- ~/ci-build
- node_modules

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.1

env:
- WP_VERSION=latest WP_MULTISITE=1

branches:
only:
- master
- dev
- develop
- qa
- staging
- ci

before_script:
- composer install --dev
- bash tests/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION

script:
# This script contains all the former testing steps as per changes for caching, modified Feb 2016
- /tmp/ci_config/scripts/run_tests.sh

script: phpunit
notifications:
email:
- [email protected]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Logging to Logentries with Php [![Build Status](https://travis-ci.org/logentries/le_php.png)](https://travis-ci.org/logentries/le_php)
=======================================
# Logging to Logentries with Php [![Build Status](https://travis-ci.org/logentries/le_php.png)](https://travis-ci.org/logentries/le_php)


*This plug in will no longer be officially supported or maintained by Logentries.<br>
If you would be interested in maintaining this project, please contact [email protected].*
Expand Down
14 changes: 14 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

$_tests_dir = 'WP_TESTS_DIR'; // DO NOT COMMIT THIS LINE CHANGE - This line is modified everytime the installer for testing runs, you do not need to commit this change.

require_once $_tests_dir . '/includes/functions.php';

# Including plugin or theme functionality
function _manually_load_plugin_theme() {
// require dirname( __FILE__ ) . '/path/to/file_name_goes_here.php';
}
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin_theme' );

require $_tests_dir . '/includes/bootstrap.php';

24 changes: 24 additions & 0 deletions tests/custom_tests/test-template.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
error_reporting( E_ERROR & ~E_DEPRECATED & ~E_STRICT );

class PostmediaTest extends WP_UnitTestCase {

function setUp() {
#setup code
parent::setUp();
}

# Additional functions for tests need to be prefixed with 'test' i.e.:
# function testSomeFunctionality(){ }

function testSample() {
// replace this with some actual testing code note this causes failure until you add a real test case do not simply cheat and change this to true
$this->assertTrue( false );
}

function tearDown() {
# tear down code
parent::tearDown();
}
}

Loading