Skip to content

Commit 743614f

Browse files
Amend travis config to only build master and develop (#7)
1 parent 12448a3 commit 743614f

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ matrix:
2828
- php: nightly
2929
fast_finish: true
3030

31+
branches:
32+
only:
33+
- master
34+
- develop
35+
3136
install:
3237
- curl -s http://getcomposer.org/installer | php
3338
- php composer.phar install --dev --no-interaction $COMPOSER_FLAGS
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace JsonMapper\LaravelPackage\Tests\Implementation;
6+
7+
8+
class EloquentModel
9+
{
10+
11+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
class CreateEloquentModelsTable extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
Schema::create('eloquent_models', function (Blueprint $table) {
17+
$table->id();
18+
$table->string('name');
19+
$table->string('email')->unique();
20+
$table->timestamp('email_verified_at')->nullable();
21+
$table->string('password');
22+
$table->timestamps();
23+
});
24+
}
25+
26+
/**
27+
* Reverse the migrations.
28+
*
29+
* @return void
30+
*/
31+
public function down()
32+
{
33+
Schema::dropIfExists('eloquent_models');
34+
}
35+
}

0 commit comments

Comments
 (0)