From aa4ede3d4eda6a57592ca43c3ba12a9761054e2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Proch=C3=A1zka?= Date: Mon, 13 Oct 2014 00:28:38 +0200 Subject: [PATCH] Travis: fixed prepare-composer.php --- tests/travis/prepare-composer.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/travis/prepare-composer.php b/tests/travis/prepare-composer.php index 360929f..35aad4e 100644 --- a/tests/travis/prepare-composer.php +++ b/tests/travis/prepare-composer.php @@ -7,10 +7,14 @@ $composerFile = $travisDir . '/composer-' . getenv('NETTE') . '.json'; unlink($rootDir . '/composer.json'); - copy($composerFile, $rootDir . '/composer.json'); + if (!copy($composerFile, $rootDir . '/composer.json')) { + exit(1); + } echo "Using tests/", basename($composerFile); } else { echo "Using default composer.json"; } + +exit(0);