aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-07-24 07:59:10 +0200
committerHans de Graaff <graaff@gentoo.org>2019-07-24 07:59:10 +0200
commitcfed7ebce2049e8276122794a59c58a2eab473b9 (patch)
tree18b508a8c1bd19aaea628e4381ffb02d6378f030
parentFix rubocop Layout/TrailingBlankLines (diff)
downloadglsamaker-cfed7ebce2049e8276122794a59c58a2eab473b9.tar.gz
glsamaker-cfed7ebce2049e8276122794a59c58a2eab473b9.tar.bz2
glsamaker-cfed7ebce2049e8276122794a59c58a2eab473b9.zip
Set up test database on travis
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r--.travis.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index ff52bcc..d511858 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,6 +11,13 @@ branches:
only:
- master
+addons:
+ mariadb: '10.2'
+
+before_script:
+ - cp config/database.yml.mysql config/database.yml
+ - mysql -e 'CREATE DATABASE glsamaker_test;'
+
script:
- bundle exec rubocop
- bundle exec rake test RAILS_ENV=test