diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ece1d2e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +nguage: ruby +rvm: + - 2.2.5 +env: + - "RAILS_VERSION=3.2.0" + - "RAILS_VERSION=4.2.0" + - "RAILS_VERSION=5.0.0" +cache: bundler +script: ./ci/test.sh diff --git a/ci/test.sh b/ci/test.sh index d6e8bcd..21e841d 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -29,6 +29,7 @@ echo '' echo '##### test-app #####' cd $ROOT_PATH/test-app +bundle exec rake db:setup bundle exec rspec # Cleanup diff --git a/test-app/db/development.sqlite3 b/test-app/db/development.sqlite3 index 852f2d2..54dfd14 100644 Binary files a/test-app/db/development.sqlite3 and b/test-app/db/development.sqlite3 differ diff --git a/test-app/log/development.log b/test-app/log/development.log index d6000ca..e414c3d 100644 --- a/test-app/log/development.log +++ b/test-app/log/development.log @@ -8288,3 +8288,9 @@ Served asset /swagger-ui/css/print.css - 304 Not Modified (3ms) Started GET "/api-docs/v1/swagger.json" for 127.0.0.1 at 2016-10-10 17:40:13 -0700 +Connecting to database specified by database.yml +  (0.5ms) select sqlite_version(*) +  (1.9ms) DROP TABLE "blogs" +  (0.9ms) CREATE TABLE "blogs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"