From 584e56714903677a79a2deeaa7860844ffa9fd57 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 30 Jan 2017 21:56:02 -0800 Subject: [PATCH] Fixed tests on Travis --- .travis.yml | 8 ++------ test/sqlite_test.rb | 5 +++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index f38eb15..f28f53b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,12 +15,8 @@ before_install: - mysql -e 'create database groupdate_test;' - mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql - psql -c 'create database groupdate_test;' -U postgres -addons: - apt: - sources: - - travis-ci/sqlite3 - packages: - - sqlite3 +env: + - TRAVIS=t notifications: email: on_success: never diff --git a/test/sqlite_test.rb b/test/sqlite_test.rb index c4b83fc..5898faf 100644 --- a/test/sqlite_test.rb +++ b/test/sqlite_test.rb @@ -17,6 +17,11 @@ class TestSqlite < Minitest::Test skip end + def test_zeros_datetime + skip if ENV["TRAVIS"] + super + end + def call_method(method, field, options) if method == :quarter || options[:time_zone] || options[:day_start] || options[:week_start] || Groupdate.week_start != :sun || (Time.zone && options[:time_zone] != false) error = assert_raises(Groupdate::Error) { super } -- libgit2 0.21.0