Replaced with https://github.com/silverstripe-labs/silverstripe-travis-support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
# Compares response times on a specific URL on different SilverStripe versions. | |
# | |
# USAGE: bench.sh <base-path> <base-url> | |
basepath=$1 | |
baseurl=$2 | |
urls="/?flush=all /" | |
abparams="-n 10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NewsPage extends Page { | |
static $db = array( | |
'SidebarTextAboveImage' => 'Text', | |
'SidebarTextBelowImage' => 'Text', | |
); | |
static $has_one = array( | |
'SidebarImage' => 'Image' | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class WidgetArea extends DataObject { | |
static $belongs_many_many = array( | |
'Pages' => 'Page' | |
); | |
static $many_many_extraFields = array( | |
'Pages' => array( | |
'SectionName' => 'Varchar' | |
) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 62d1b23eabb185616015d786990a7f82f042777f | |
Author: a2nt <[email protected]> | |
Date: Sat May 4 04:45:53 2013 +0700 | |
IMPROVEMENT Media Dialog extra data | |
HtmlEditorField_Toolbar class allows you to extend media fields for an | |
instance this way: | |
[code] | |
class HtmlEditorField_ToolbarEx extends Extension { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit d47b2026971d74cb9604a27edb6aa905499f132f | |
Author: Jeremy Shipman <[email protected]> | |
Date: Fri Apr 19 15:45:43 2013 +1200 | |
Restored c4eac5310e1f (merge error) | |
FIX: Instead of CsvBulkLoader->findExistingRecord out right failing (i.e. no duplicate found) when the duplicate check field is empty, it will now continue on to check other duplicateCheck fields. | |
Added extra testing data to CSVBulkLoaderTest so that it fails. | |
diff --git a/dev/CsvBulkLoader.php b/dev/CsvBulkLoader.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jshint node:true*/ | |
module.exports = function(grunt) { | |
"use strict"; | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
grunticon: { | |
mobileIcons: { | |
options: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import xml.etree.ElementTree as ET | |
import urllib.request | |
import base64 | |
import json | |
import os.path | |
import re | |
class GitoriousRepoLister: | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scenario: I can search for a page by its newest last edited date | |
Given a "page" "Recent Page" | |
And a "page" "Old Page" was last edited "7 days ago" | |
When I fill in "To" with "the date of 5 days ago" | |
And I press the "Apply Filter" button | |
Then I should not see "Recent Page" in the tree | |
But I should see "Old Page" in the tree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Behat\Behat\Context\BehatContext; | |
class MyFeatureContext extends BehatContext { | |
protected $dateFormat = 'Y-m-d'; | |
/** | |
* Transforms relative date statements compatible with strtotime(). | |
* Example: "date 2 days ago" might return "2013-10-10" if its currently |
OlderNewer