Permalink
Browse files

Put back travis?

1 parent 6d2322c commit 503a16349c02c768d92caf4a7d866c8eaded8adb @nanaya nanaya committed Aug 19, 2016
Showing with 34 additions and 1 deletion.
  1. +15 −0 .travis.yml
  2. +1 −1 config/database.yml.example
  3. +18 −0 script/travis_prepare
View
@@ -0,0 +1,15 @@
+cache: bundler
+sudo: false
+
+language: ruby
+rvm:
+- 2.3.1
+
+addons:
+ postgresql: 9.4
+
+services:
+- memcached
+
+before_script:
+- script/travis_prepare
@@ -2,7 +2,7 @@
# Only works with postgresql adapter.
login: &login
adapter: postgresql
- username: moe
+ username: postgres
password: imouto
host: 127.0.0.1
View
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+mkdir -p public/data
+
+cat <<EOF > config/database.yml
+test:
+ adapter: postgresql
+ username: postgres
+ database: moebooru_test
+EOF
+
+cat <<EOF > config/local_config.rb
+CONFIG["server_host"] = "localhost"
+CONFIG["admin_contact"] = "webmaster@#{CONFIG["server_host"]}"
+CONFIG["memcache_servers"] = ["127.0.0.1:11211"]
+EOF
+
+bundle exec rails db:create

0 comments on commit 503a163

Please sign in to comment.