aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to 'main/.travis.yml')
-rwxr-xr-xmain/.travis.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/main/.travis.yml b/main/.travis.yml
new file mode 100755
index 0000000..4b516f7
--- /dev/null
+++ b/main/.travis.yml
@@ -0,0 +1,36 @@
+sudo: false
+dist: trusty
+language: php
+
+services:
+ - mysql
+ - postgresql
+
+php:
+ - 5.6
+ - 7
+ - 7.1
+
+env:
+ matrix:
+ - DB=mysql
+ - DB=sqlite
+ - DB=pgsql
+
+before_install:
+ # copy sprinkles.json
+ - cp app/sprinkles.example.json app/sprinkles.json
+ # set up db
+ - bash build/before_install.sh $DB
+
+before_script:
+ # install deps and UF
+ - composer install
+ - php bakery migrate
+
+script:
+ # run unit tests
+ - composer test
+
+after_failure:
+ - cat app/log/userfrosting.log