]> BookStack Code Mirror - bookstack/commitdiff
Travis CI updates (#130)
authorDan Brown <redacted>
Sun, 19 Jun 2016 18:30:43 +0000 (19:30 +0100)
committerGitHub <redacted>
Sun, 19 Jun 2016 18:30:43 +0000 (19:30 +0100)
* Updated travis config to use mysql

* Added cache for composer

.travis.yml

index ff387bd3dcbe650019e158e17e3e5fc4fdd96748..83e9e10f5edff887590f9f3d7cbe8217252a4fc8 100644 (file)
@@ -1,3 +1,5 @@
+dist: trusty
+sudo: required
 language: php
 php:
   - 7.0
@@ -5,15 +7,21 @@ php:
 cache:
   directories:
     - vendor
+    - node_modules
+    - $HOME/.composer/cache
 
 addons:
-  mariadb: '10.0'
+  apt:
+    packages:
+    - mysql-server-5.6
+    - mysql-client-core-5.6
+    - mysql-client-5.6
 
 before_install:
   - npm install -g npm@latest
 
 before_script:
-  - mysql -e 'create database `bookstack-test`;'
+  - mysql -u root -e 'create database `bookstack-test`;'
   - composer config -g github-oauth.github.com $GITHUB_ACCESS_TOKEN
   - phpenv config-rm xdebug.ini
   - composer self-update