From 5556c4e342a395fa7bc081e2857d76f21516d461 Mon Sep 17 00:00:00 2001 From: Danny van der Sluijs Date: Wed, 26 Aug 2020 20:59:22 +0200 Subject: [PATCH] Amend travis config to only build master and develop --- .travis.yml | 5 +++ tests/Implementation/EloquentModel.php | 11 ++++++ ...25_000000_create_eloquent_models_table.php | 35 +++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 tests/Implementation/EloquentModel.php create mode 100644 tests/database/migrations/2020_08_25_000000_create_eloquent_models_table.php diff --git a/.travis.yml b/.travis.yml index 3d61f7c..24b00c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,6 +28,11 @@ matrix: - php: nightly fast_finish: true +branches: + only: + - master + - develop + install: - curl -s http://getcomposer.org/installer | php - php composer.phar install --dev --no-interaction $COMPOSER_FLAGS diff --git a/tests/Implementation/EloquentModel.php b/tests/Implementation/EloquentModel.php new file mode 100644 index 0000000..3736b6d --- /dev/null +++ b/tests/Implementation/EloquentModel.php @@ -0,0 +1,11 @@ +id(); + $table->string('name'); + $table->string('email')->unique(); + $table->timestamp('email_verified_at')->nullable(); + $table->string('password'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('eloquent_models'); + } +}