Skip to content

Commit bf5158f

Browse files
committed
Fixing travis
1 parent a61953e commit bf5158f

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.travis.install-mysql-5.7.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
#!/usr/bin/env bash
2-
31
echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7 | sudo debconf-set-selections
42
wget http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
53
sudo dpkg --install mysql-apt-config_0.7.3-1_all.deb
64
sudo apt-get update -q
7-
sudo apt-get install -q -y -o Dpkg::Options::=--force-confnew mysql-server
5+
sudo apt-get install -q -y --allow-unauthenticated -o Dpkg::Options::=--force-confnew mysql-server
86
sudo mysql_upgrade

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
language: php
22

3-
sudo: required
4-
53
php:
64
- '5.5'
75
- '5.6'
86
- '7.0'
97
- '7.1'
10-
- hhvm
11-
- nightly
128

139
services:
1410
- mysql
1511

16-
before_install:
12+
sudo: true
13+
14+
before_script:
1715
- bash .travis.install-mysql-5.7.sh
16+
17+
before_install:
1818
- mysql -e 'CREATE DATABASE test;'
1919

20-
install: composer install
20+
install: composer install

tests/Feature/SpatialTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function createApplication()
2424
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();
2525

2626
$app['config']->set('database.default', 'mysql');
27-
$app['config']->set('database.connections.mysql.host', env('DB_HOST', '172.17.0.2')); // TODO: do not commit ip change
27+
$app['config']->set('database.connections.mysql.host', env('DB_HOST', '127.0.0.1'));
2828
$app['config']->set('database.connections.mysql.database', 'test');
2929
$app['config']->set('database.connections.mysql.username', 'root');
3030
$app['config']->set('database.connections.mysql.password', '');

0 commit comments

Comments
 (0)