How to set up a Headless Selenium Testing environment for CentOS 6.3.
Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests with Firefox.
#!/bin/sh | |
####################################################### | |
# Another great script by: # | |
# _ , _ # | |
# / ) _, _ |) /|/_) ,_ _ _ # | |
# / / | / |/\ | \/ | / \_| | |_/|/| |/ # | |
# /__/\/|_/\__/| |/|(_/ |/\_/ \/ \/ | |_/|_/ # | |
# (| # | |
# # |
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Set some basic project information and targets --> | |
<project name="My Symfony2 Project" default="build"> | |
<target name="build" | |
depends="prepare, vendors, dbupdate, fixtures, lint, phploc, phpmd, phpcpd, phpcs, phpunit"/> | |
<target name="build-parallel" | |
depends="prepare, vendors, dbupdate, fixtures, lint, tools-parallel, phpcpd, phpunit"/> |
<?php | |
/** | |
* Rewrite Mage_Catalog_Model_Resource_Url class | |
* | |
* @category Lyonscg | |
* @package Lyonscg_Catalog | |
* @author Vladimir Kosenok vkosenok@lyonscg.com | |
* @copyright Copyright (c) 2012 Lyons Consulting Group (www.lyonscg.com) | |
*/ |
cordova plugin add https://github.com/brodysoft/Cordova-SQLitePlugin.git |
#!/bin/bash | |
for file in $(git diff --cached --name-only | grep -E '\.(js|jsx)$') | |
do | |
git show ":$file" | node_modules/.bin/eslint --stdin --stdin-filename "$file" # we only want to lint the staged changes, not any un-staged changes | |
if [ $? -ne 0 ]; then | |
echo "ESLint failed on staged file '$file'. Please check your code and try again. You can run ESLint manually via npm run eslint." | |
exit 1 # exit with failure status | |
fi | |
done |
#!/usr/bin/env bash | |
VERSION=4.0.1 | |
SCRIPT=`basename "$0"` | |
APPNAME="My App" | |
APPICONS="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericApplicationIcon.icns" | |
OSX_VERSION=`sw_vers -productVersion` | |
PWD=`pwd` | |
function usage { |
It assumes the highest positive signed 32-bit float value for numbers.
In other words, 2147483647
(or 0x7FFFFFFF
or 2^31-1
).