mirror of
https://github.com/typeable/validationt.git
synced 2024-11-22 01:34:05 +03:00
Merge pull request #12 from ilyakooo0/bump-version
bumped version and added explicit default-language to tests.
This commit is contained in:
commit
c943f92ac2
41
.travis.yml
41
.travis.yml
@ -4,48 +4,35 @@ language: haskell
|
||||
git:
|
||||
depth: 5
|
||||
|
||||
cabal: "2.4"
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- "$HOME/.cabal/store"
|
||||
- "$HOME/.stack"
|
||||
- "$TRAVIS_BUILD_DIR/.stack-work"
|
||||
|
||||
matrix:
|
||||
jobs:
|
||||
include:
|
||||
|
||||
# Cabal
|
||||
- ghc: 8.6.5
|
||||
env: SNAPSHOT="lts-14.22"
|
||||
- ghc: 8.6.4
|
||||
env: SNAPSHOT="lts-13.19"
|
||||
- ghc: 8.6.3
|
||||
env: SNAPSHOT="lts-13.11"
|
||||
- ghc: 8.4.4
|
||||
- ghc: 8.6.5
|
||||
|
||||
# Stack
|
||||
- ghc: 8.6.5
|
||||
env: STACK_YAML="$TRAVIS_BUILD_DIR/stack.yaml"
|
||||
env: SNAPSHOT="lts-12.26"
|
||||
|
||||
install:
|
||||
- |
|
||||
if [ -z "$STACK_YAML" ]; then
|
||||
ghc --version
|
||||
cabal --version
|
||||
cabal new-update
|
||||
cabal new-build --enable-tests --enable-benchmarks
|
||||
else
|
||||
# install stack
|
||||
curl -sSL https://get.haskellstack.org/ | sh
|
||||
# install stack
|
||||
curl -sSL https://get.haskellstack.org/ | sh
|
||||
|
||||
# build project with stack
|
||||
stack --version
|
||||
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
|
||||
fi
|
||||
# build project with stack
|
||||
stack --version
|
||||
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --resolver=$SNAPSHOT
|
||||
|
||||
script:
|
||||
- |
|
||||
if [ -z "$STACK_YAML" ]; then
|
||||
cabal new-test --enable-tests
|
||||
else
|
||||
stack test --system-ghc
|
||||
fi
|
||||
stack test --system-ghc
|
||||
|
||||
notifications:
|
||||
email: false
|
||||
|
@ -1,5 +1,11 @@
|
||||
# Revision history for validationt
|
||||
|
||||
## 0.3.0
|
||||
|
||||
* Added documentation.
|
||||
* Fixed `textErrors` behaviour.
|
||||
* Dropped `transformers-lift` dependency.
|
||||
|
||||
## 0.2.1.0
|
||||
|
||||
* GHC 8.4 support
|
||||
|
@ -3,4 +3,4 @@ module Main (main) where
|
||||
import Test.DocTest
|
||||
|
||||
main :: IO ()
|
||||
main = doctest [ "-XOverloadedStrings", "src" ]
|
||||
main = doctest [ "-XOverloadedStrings", "-isrc", "src" ]
|
||||
|
@ -2,7 +2,7 @@
|
||||
-- documentation, see http://haskell.org/cabal/users-guide/
|
||||
|
||||
name: validationt
|
||||
version: 0.2.1.0
|
||||
version: 0.3.0
|
||||
synopsis: Straightforward validation monad.
|
||||
description: Convenient solution for validating web forms and APIs.
|
||||
homepage: https://github.com/typeable/validationt
|
||||
@ -50,21 +50,12 @@ library
|
||||
-Wmissing-export-lists
|
||||
|
||||
test-suite doctest
|
||||
default-language: Haskell2010
|
||||
type: exitcode-stdio-1.0
|
||||
hs-source-dirs: test
|
||||
ghc-options: -Wall
|
||||
main-is: Doc.hs
|
||||
build-depends: base >=4.8 && < 5
|
||||
, aeson >= 1.0
|
||||
, doctest
|
||||
, containers
|
||||
, exceptions
|
||||
, lens
|
||||
, monad-control
|
||||
, mtl
|
||||
, QuickCheck
|
||||
, text
|
||||
, transformers
|
||||
, transformers-base
|
||||
, vector
|
||||
, doctest
|
||||
build-depends:
|
||||
base >= 4.10.0.0
|
||||
, doctest >= 0.11.4
|
||||
, validationt
|
||||
|
Loading…
Reference in New Issue
Block a user