From a64f17891f565299c6401a8b21a8cd06d7febc7c Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Fri, 23 Aug 2019 09:22:36 +0300 Subject: [PATCH] Travis CI Configuration and README badge This commit adds travis-ci.com configuration and the related build status badge to the README header. --- .travis.yml | 30 ++++++++++++++++++++++++++++++ composer.json | 2 +- readme.md | 1 + 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..7a43261 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,30 @@ +language: php + +env: + global: + - setup=stable + +matrix: + fast_finish: true + include: + - php: 7.1 + - php: 7.1 + env: setup=lowest + - php: 7.2 + - php: 7.2 + env: setup=lowest + - php: 7.3 + - php: 7.3 + env: setup=lowest + +sudo: false + +cache: + directories: + - $HOME/.composer/cache + +install: + - if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; fi + - if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable --no-suggest; fi + +script: vendor/bin/phpunit diff --git a/composer.json b/composer.json index d35178a..3bcafb8 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "distinctm/laravel-data-sync", - "description": "Laravel utility to keep records synced between enviroments through source control", + "description": "Laravel utility to keep records synced between environments through source control", "license": "MIT", "authors": [ { diff --git a/readme.md b/readme.md index 6dbd3a9..f0716ee 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,7 @@

Total Downloads Latest Stable Version +Travis CI Build Status: Master

# Laravel Data Sync