1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Travis...

This commit is contained in:
Hillel Coren 2016-02-18 23:05:30 +02:00
parent 4973246aed
commit fed9078c42
3 changed files with 3 additions and 4 deletions

View File

@ -46,7 +46,6 @@ before_script:
- sed -i 's/APP_ENV=production/APP_ENV=development/g' .env - sed -i 's/APP_ENV=production/APP_ENV=development/g' .env
- sed -i 's/APP_DEBUG=false/APP_DEBUG=true/g' .env - sed -i 's/APP_DEBUG=false/APP_DEBUG=true/g' .env
- sed -i 's/REQUIRE_HTTPS=false/NINJA_DEV=true/g' .env - sed -i 's/REQUIRE_HTTPS=false/NINJA_DEV=true/g' .env
- cat .env
# create the database and user # create the database and user
- mysql -u root -e "create database IF NOT EXISTS ninja;" - mysql -u root -e "create database IF NOT EXISTS ninja;"
- mysql -u root -e "GRANT ALL PRIVILEGES ON ninja.* To 'ninja'@'localhost' IDENTIFIED BY 'ninja'; FLUSH PRIVILEGES;" - mysql -u root -e "GRANT ALL PRIVILEGES ON ninja.* To 'ninja'@'localhost' IDENTIFIED BY 'ninja'; FLUSH PRIVILEGES;"

View File

@ -62,12 +62,12 @@ class Utils
return true; return true;
} }
return isset($_ENV['NINJA_PROD']) && $_ENV['NINJA_PROD'] == 'true'; return env('NINJA_PROD') == 'true';
} }
public static function isNinjaDev() public static function isNinjaDev()
{ {
return isset($_ENV['NINJA_DEV']) && $_ENV['NINJA_DEV'] == 'true'; return env('NINJA_DEV') == 'true';
} }
public static function requireHTTPS() public static function requireHTTPS()

View File

@ -28,7 +28,7 @@ class OnlinePaymentCest
if (strpos($I->grabFromCurrentUrl(), 'create') !== false) { if (strpos($I->grabFromCurrentUrl(), 'create') !== false) {
$I->fillField(['name' =>'23_apiKey'], env('stripe_secret_key') ?: Fixtures::get('stripe_secret_key')); $I->fillField(['name' =>'23_apiKey'], env('stripe_secret_key') ?: Fixtures::get('stripe_secret_key'));
// Fails to load StripeJS causing "ReferenceError: Can't find variable: Stripe" // Fails to load StripeJS causing "ReferenceError: Can't find variable: Stripe"
//$I->fillField(['name' =>'publishable_key'], Fixtures::get('publishable_key')); //$I->fillField(['name' =>'stripe_publishable_key'], env('stripe_secret_key') ?: Fixtures::get('stripe_publishable_key'));
$I->selectOption('#token_billing_type_id', 4); $I->selectOption('#token_billing_type_id', 4);
$I->click('Save'); $I->click('Save');
$I->see('Successfully created gateway'); $I->see('Successfully created gateway');