From 75067a13b4aeaad9c4ebcfbdaf9fea887de04867 Mon Sep 17 00:00:00 2001 From: Nicolas Talle Date: Thu, 12 Mar 2020 16:50:47 +0100 Subject: [PATCH] [workflow] add Travis CI --- .travis.yml | 7 +++---- README.md | 2 +- src/validator.cr | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 765f0e9..227f158 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ language: crystal -# Uncomment the following if you'd like Travis to run specs and check code formatting -# script: -# - crystal spec -# - crystal tool format --check +script: + - crystal spec + - crystal tool format --check diff --git a/README.md b/README.md index bc0be07..93ce5dd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # validator -[![GitHub release](https://img.shields.io/github/release/Nicolab/crystal-validator.svg)](https://github.com/Nicolab/crystal-validator/releases) [![Docs](https://img.shields.io/badge/docs-available-brightgreen.svg)](https://nicolab.github.io/crystal-validator/) +[![Build Status](https://travis-ci.com/Nicolab/crystal-validator.svg?branch=master)](https://travis-ci.com/Nicolab/crystal-validator) [![GitHub release](https://img.shields.io/github/release/Nicolab/crystal-validator.svg)](https://github.com/Nicolab/crystal-validator/releases) [![Docs](https://img.shields.io/badge/docs-available-brightgreen.svg)](https://nicolab.github.io/crystal-validator/) ∠(・.-)―〉 →◎ `validator` is a [Crystal](https://crystal-lang.org) micro validations module.
Very simple and efficient, all validations return `true` or `false`. diff --git a/src/validator.cr b/src/validator.cr index ff78829..c511fb3 100644 --- a/src/validator.cr +++ b/src/validator.cr @@ -83,7 +83,7 @@ require "./validators/*" # # `Check` is a simple and lightweight wrapper, let your imagination run wild to add your logic around it. module Validator - VERSION = "1.0.0-rc4" + VERSION = "1.0.0-rc5" # Used by `is!` when a validation is not `true`. class Error < Exception; end