From f060798721a155760c5c5939c780dc5d95541da0 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 18 Feb 2016 12:11:09 +0200 Subject: [PATCH] Working on TravisCI --- .env.example | 2 +- .travis.yml | 8 ++------ tests/_bootstrap.php.default | 2 +- tests/acceptance.suite.yml | 2 +- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.env.example b/.env.example index 20c977c663e9..9061ffc8d13b 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,6 @@ APP_ENV=production APP_DEBUG=false -APP_URL=http://ninja.dev +APP_URL=http://127.0.0.1 APP_CIPHER=rijndael-128 APP_KEY=SomeRandomString diff --git a/.travis.yml b/.travis.yml index 4bdcc265fb53..77b175fadb26 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,10 +8,6 @@ php: # - 7.0 # - hhvm -addons: - hosts: - - ninja.dev - cache: directories: - vendor @@ -51,13 +47,13 @@ before_script: - php artisan db:seed --no-interaction # default seed - php artisan db:seed --no-interaction --class=UserTableSeeder # development seed # Start webserver on ninja.dev:8000 - - php artisan serve --host=ninja.dev --port=8000 & # '&' allows to run in background + - php artisan serve --port=8000 & # '&' allows to run in background # Start PhantomJS - phantomjs --webdriver=4444 & # '&' allows to run in background # Give it some time to start - sleep 5 # Make sure the app is up-to-date - - curl -L http://ninja.dev:8000/update + - curl -L http://127.0.0.1:8000/update script: - php ./vendor/codeception/codeception/codecept run --html --debug diff --git a/tests/_bootstrap.php.default b/tests/_bootstrap.php.default index 19fc7eba0df7..b27f5f611237 100644 --- a/tests/_bootstrap.php.default +++ b/tests/_bootstrap.php.default @@ -2,7 +2,7 @@ // This is global bootstrap for autoloading use Codeception\Util\Fixtures; -Fixtures::add('url', 'http://ninja.dev:8000'); +Fixtures::add('url', 'http://127.0.0.1:8000'); Fixtures::add('username', 'user@example.com'); Fixtures::add('password', 'password'); diff --git a/tests/acceptance.suite.yml b/tests/acceptance.suite.yml index 4a152dce6eff..8b830869aab3 100644 --- a/tests/acceptance.suite.yml +++ b/tests/acceptance.suite.yml @@ -8,7 +8,7 @@ class_name: AcceptanceTester modules: enabled: - WebDriver: - url: 'http://ninja.dev:8000' + url: 'http://127.0.0.1:8000' host: 127.0.0.1 window_size: 1024x768 wait: 5