From 0d5da2d9d4767f618dc60ff272ac9cc3f240ad2c Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Mon, 2 May 2016 12:26:09 +0100 Subject: [PATCH 1/3] Added travis CI file --- .travis.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..7163e93d5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +language: php + +php: + - 7.0 + + +addons: + mariadb: '10.1' + +before_script: + - mysql -e 'create database `bookstack-test`;' + - composer config -g github-oauth.github.com $GITHUB_ACCESS_TOKEN + - phpenv config-rm xdebug.ini + - composer self-update + - composer install --prefer-dist --no-interaction + - npm install + - ./node_modules/.bin/gulp + - php artisan migrate --force -n --database=mysql_testing + - php artisan db:seed --force -n --class=DummyContentSeeder --database=mysql_testing + +script: + - vendor/bin/phpunit \ No newline at end of file From 223a6b546cd35e4363e06bfaa21b0af326b52334 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Mon, 2 May 2016 12:37:58 +0100 Subject: [PATCH 2/3] Added dependancy caching and travis badge --- .travis.yml | 4 ++++ readme.md | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 7163e93d5..3569fe478 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,10 @@ language: php php: - 7.0 +cache: + directories: + - node_modules + - vendor addons: mariadb: '10.1' diff --git a/readme.md b/readme.md index 067983e84..8a20d52d9 100644 --- a/readme.md +++ b/readme.md @@ -1,5 +1,7 @@ # BookStack +[![Build Status](https://travis-ci.org/ssddanbrown/BookStack.svg)](https://travis-ci.org/ssddanbrown/BookStack) + A platform for storing and organising information and documentation. General information and documentation for BookStack can be found at https://www.bookstackapp.com/. * [Installation Instructions](https://www.bookstackapp.com/docs/admin/installation) From a40af08018018a23816b1c1fc33fd912929565f1 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Mon, 2 May 2016 12:50:17 +0100 Subject: [PATCH 3/3] Changed mariadb version --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3569fe478..8a09a926c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ cache: - vendor addons: - mariadb: '10.1' + mariadb: '10.0' before_script: - mysql -e 'create database `bookstack-test`;'