Retry to use saucelabs addon from Travis
This commit is contained in:
parent
fdebc5c986
commit
d09b2fc86a
|
@ -20,6 +20,8 @@ env:
|
||||||
global:
|
global:
|
||||||
- SAUCE_USERNAME=seblucas
|
- SAUCE_USERNAME=seblucas
|
||||||
- secure: VVxocvmz6WYr3tZSTA42M/LUhaHoBWw5onh85hnquoMaxspd3tDCyfQIowTTmEXikRh2T0CkTH7X3dhVwRTd/Ha9isja1qDo9Lc2flGCoWICF7WFZuom084+d+O+EWx4WZMAw4Lz4w6a5xflpPKnzNs9B0+de0BdTlQ5qSXVrcA=
|
- secure: VVxocvmz6WYr3tZSTA42M/LUhaHoBWw5onh85hnquoMaxspd3tDCyfQIowTTmEXikRh2T0CkTH7X3dhVwRTd/Ha9isja1qDo9Lc2flGCoWICF7WFZuom084+d+O+EWx4WZMAw4Lz4w6a5xflpPKnzNs9B0+de0BdTlQ5qSXVrcA=
|
||||||
|
addons:
|
||||||
|
sauce_connect: true
|
||||||
addons:
|
addons:
|
||||||
hosts:
|
hosts:
|
||||||
- cops-travis
|
- cops-travis
|
||||||
|
|
|
@ -78,6 +78,7 @@ class Cops extends Sauce\Sausage\WebDriverTestCase
|
||||||
if (isset ($_SERVER["TRAVIS_JOB_NUMBER"])) {
|
if (isset ($_SERVER["TRAVIS_JOB_NUMBER"])) {
|
||||||
$caps = $this->getDesiredCapabilities();
|
$caps = $this->getDesiredCapabilities();
|
||||||
$caps['build'] = getenv ("TRAVIS_JOB_NUMBER");
|
$caps['build'] = getenv ("TRAVIS_JOB_NUMBER");
|
||||||
|
$caps['tunnel-identifier'] = getenv ("TRAVIS_JOB_NUMBER");
|
||||||
$caps['idle-timeout'] = "180";
|
$caps['idle-timeout'] = "180";
|
||||||
$this->setDesiredCapabilities($caps);
|
$this->setDesiredCapabilities($caps);
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ wget http://getcomposer.org/composer.phar
|
||||||
php composer.phar install
|
php composer.phar install
|
||||||
|
|
||||||
# Handle Sauce
|
# Handle Sauce
|
||||||
curl https://gist.githubusercontent.com/seblucas/7692094/raw/e2a090e6ea639a0d700e6d02cee048fa2f6c8617/sauce_connect_setup.sh | bash
|
# curl https://gist.githubusercontent.com/seblucas/7692094/raw/e2a090e6ea639a0d700e6d02cee048fa2f6c8617/sauce_connect_setup.sh | bash
|
||||||
cp -v test/config_local.php.sauce config_local.php
|
cp -v test/config_local.php.sauce config_local.php
|
||||||
php -S 127.0.0.1:8888 &
|
php -S 127.0.0.1:8888 &
|
||||||
vendor/bin/phpunit --no-configuration test/Sauce.php
|
vendor/bin/phpunit --no-configuration test/Sauce.php
|
||||||
|
|
Loading…
Reference in a new issue