Skip to content

Commit

Permalink
Build hscim with LTS 14.12 (again) (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisx authored Feb 4, 2020
1 parent d095fbb commit af22d89
Show file tree
Hide file tree
Showing 10 changed files with 283 additions and 86 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
dist
dist-*
cabal-dev
*.cabal
*.o
*.hi
*.chi
Expand All @@ -21,8 +20,8 @@ cabal.project.local
cabal.project.local~
.HTF/
.ghc.environment.*
.stac-work-tmp/

*~
*.el
\#*
hscim.cabal
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,16 @@ addons:
packages:
- libgmp-dev

env:
- RESOLVER=lts-12.10

before_install:
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'

install:
- stack --resolver=$RESOLVER --no-terminal --install-ghc test --fast --only-dependencies
- stack --no-terminal --install-ghc test --fast --only-dependencies

script:
- stack --resolver=$RESOLVER --no-terminal test --fast --haddock --no-haddock-deps
- stack --no-terminal test --fast --haddock --no-haddock-deps

notifications: # see https://docs.travis-ci.com/user/notifications
email: false
218 changes: 218 additions & 0 deletions hscim.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,218 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.33.0.
--
-- see: https://github.com/sol/hpack
--
-- hash: dacbefe6b2a13bf0be7cc0a32b675c371e2afc853228e2feb0e834c908d9aaf6

name: hscim
version: 0.3.0
synopsis: ...
description: ...
category: Web
homepage: https://github.com/wireapp/hscim/README.md
bug-reports: https://github.com/wireapp/hscim/issues
author: Wire Swiss GmbH
maintainer: Wire Swiss GmbH <backend@wire.com>
copyright: (c) 2018 Wire Swiss GmbH
license: AGPL-3
license-file: LICENSE
build-type: Simple
extra-source-files:
README.md

source-repository head
type: git
location: https://github.com/wireapp/hscim

library
exposed-modules:
Web.Scim.AttrName
Web.Scim.Capabilities.MetaSchema
Web.Scim.Capabilities.MetaSchema.Group
Web.Scim.Capabilities.MetaSchema.ResourceType
Web.Scim.Capabilities.MetaSchema.Schema
Web.Scim.Capabilities.MetaSchema.SPConfig
Web.Scim.Capabilities.MetaSchema.User
Web.Scim.Class.Auth
Web.Scim.Class.Group
Web.Scim.Class.User
Web.Scim.ContentType
Web.Scim.Filter
Web.Scim.Handler
Web.Scim.Schema.AuthenticationScheme
Web.Scim.Schema.Common
Web.Scim.Schema.Error
Web.Scim.Schema.ListResponse
Web.Scim.Schema.Meta
Web.Scim.Schema.PatchOp
Web.Scim.Schema.ResourceType
Web.Scim.Schema.Schema
Web.Scim.Schema.User
Web.Scim.Schema.User.Address
Web.Scim.Schema.User.Certificate
Web.Scim.Schema.User.Email
Web.Scim.Schema.User.IM
Web.Scim.Schema.User.Name
Web.Scim.Schema.User.Phone
Web.Scim.Schema.User.Photo
Web.Scim.Schema.UserTypes
Web.Scim.Server
Web.Scim.Server.Mock
Web.Scim.Test.Acceptance
Web.Scim.Test.Util
other-modules:
Paths_hscim
hs-source-dirs:
src
default-extensions: ConstraintKinds DataKinds DeriveFunctor DeriveGeneric FlexibleContexts FlexibleInstances KindSignatures LambdaCase MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeApplications TypeFamilies TypeOperators TypeSynonymInstances
ghc-options: -Wall -Werror
build-depends:
aeson >=1.4.5 && <1.5
, aeson-qq >=0.8.2 && <0.9
, attoparsec >=0.13.2 && <0.14
, base >=4.12 && <4.13
, bytestring >=0.10.8 && <0.11
, email-validate >=2.3.2 && <2.4
, errors >=2.3.0 && <2.4
, hashable >=1.2.7 && <1.4
, hedgehog >=1.0.1 && <1.1
, hspec >=2.7.1 && <2.8
, hspec-expectations >=0.8.2 && <0.9
, hspec-wai >=0.9.2 && <0.10
, http-api-data >=0.4.1 && <0.5
, http-media >=0.8.0 && <0.9
, http-types >=0.12.3 && <0.13
, hw-hspec-hedgehog >=0.1.0 && <0.2
, list-t >=1.0.4 && <1.1
, microlens >=0.4.10 && <0.5
, mmorph >=1.1.3 && <1.2
, mtl >=2.2.2 && <2.3
, network-uri >=2.6.1 && <2.7
, network-uri-static >=0.1.2 && <0.2
, scientific >=0.3.6 && <0.4
, servant >=0.16.2 && <0.17
, servant-server >=0.16.2 && <0.17
, stm >=2.5.0 && <2.6
, stm-containers >=1.1.0 && <1.2
, template-haskell >=2.14.0 && <2.15
, text >=1.2.3 && <1.3
, time >=1.8.0 && <1.9
, unordered-containers >=0.2.10 && <0.3
, uuid >=1.3.13 && <1.4
, vector >=0.12.0 && <0.13
, wai >=3.2.2 && <3.3
, wai-extra >=3.0.28 && <3.1
, wai-logger >=2.3.5 && <2.4
, warp >=3.2.28 && <3.4
default-language: Haskell2010

executable hscim-server
main-is: Main.hs
other-modules:
Paths_hscim
hs-source-dirs:
server
default-extensions: ConstraintKinds DataKinds DeriveFunctor DeriveGeneric FlexibleContexts FlexibleInstances KindSignatures LambdaCase MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeApplications TypeFamilies TypeOperators TypeSynonymInstances
ghc-options: -Wall -Werror -threaded -rtsopts -with-rtsopts=-N
build-depends:
aeson >=1.4.5 && <1.5
, aeson-qq >=0.8.2 && <0.9
, attoparsec >=0.13.2 && <0.14
, base >=4.12 && <4.13
, bytestring >=0.10.8 && <0.11
, email-validate >=2.3.2 && <2.4
, errors >=2.3.0 && <2.4
, hashable >=1.2.7 && <1.4
, hedgehog >=1.0.1 && <1.1
, hscim
, hspec >=2.7.1 && <2.8
, hspec-expectations >=0.8.2 && <0.9
, hspec-wai >=0.9.2 && <0.10
, http-api-data >=0.4.1 && <0.5
, http-media >=0.8.0 && <0.9
, http-types >=0.12.3 && <0.13
, hw-hspec-hedgehog >=0.1.0 && <0.2
, list-t >=1.0.4 && <1.1
, microlens >=0.4.10 && <0.5
, mmorph >=1.1.3 && <1.2
, mtl >=2.2.2 && <2.3
, network-uri >=2.6.1 && <2.7
, network-uri-static >=0.1.2 && <0.2
, scientific >=0.3.6 && <0.4
, servant >=0.16.2 && <0.17
, servant-server >=0.16.2 && <0.17
, stm >=2.5.0 && <2.6
, stm-containers >=1.1.0 && <1.2
, template-haskell >=2.14.0 && <2.15
, text >=1.2.3 && <1.3
, time >=1.8.0 && <1.9
, unordered-containers >=0.2.10 && <0.3
, uuid >=1.3.13 && <1.4
, vector >=0.12.0 && <0.13
, wai >=3.2.2 && <3.3
, wai-extra >=3.0.28 && <3.1
, wai-logger >=2.3.5 && <2.4
, warp >=3.2.28 && <3.4
default-language: Haskell2010

test-suite spec
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules:
Test.AcceptanceSpec
Test.Capabilities.MetaSchemaSpec
Test.Class.AuthSpec
Test.Class.GroupSpec
Test.Class.UserSpec
Test.FilterSpec
Test.Schema.PatchOpSpec
Test.Schema.UserSpec
Paths_hscim
hs-source-dirs:
test
default-extensions: ConstraintKinds DataKinds DeriveFunctor DeriveGeneric FlexibleContexts FlexibleInstances KindSignatures LambdaCase MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeApplications TypeFamilies TypeOperators TypeSynonymInstances
ghc-options: -Wall -Werror -threaded -rtsopts -with-rtsopts=-N
build-tool-depends:
hspec-discover:hspec-discover
build-depends:
aeson >=1.4.5 && <1.5
, aeson-qq >=0.8.2 && <0.9
, attoparsec >=0.13.2 && <0.14
, base >=4.12 && <4.13
, bytestring >=0.10.8 && <0.11
, email-validate >=2.3.2 && <2.4
, errors >=2.3.0 && <2.4
, hashable >=1.2.7 && <1.4
, hedgehog >=1.0.1 && <1.1
, hscim
, hspec >=2.7.1 && <2.8
, hspec-expectations >=0.8.2 && <0.9
, hspec-wai >=0.9.2 && <0.10
, http-api-data >=0.4.1 && <0.5
, http-media >=0.8.0 && <0.9
, http-types >=0.12.3 && <0.13
, hw-hspec-hedgehog >=0.1.0 && <0.2
, list-t >=1.0.4 && <1.1
, microlens >=0.4.10 && <0.5
, mmorph >=1.1.3 && <1.2
, mtl >=2.2.2 && <2.3
, network-uri >=2.6.1 && <2.7
, network-uri-static >=0.1.2 && <0.2
, scientific >=0.3.6 && <0.4
, servant >=0.16.2 && <0.17
, servant-server >=0.16.2 && <0.17
, stm >=2.5.0 && <2.6
, stm-containers >=1.1.0 && <1.2
, template-haskell >=2.14.0 && <2.15
, text >=1.2.3 && <1.3
, time >=1.8.0 && <1.9
, unordered-containers >=0.2.10 && <0.3
, uuid >=1.3.13 && <1.4
, vector >=0.12.0 && <0.13
, wai >=3.2.2 && <3.3
, wai-extra >=3.0.28 && <3.1
, wai-logger >=2.3.5 && <2.4
, warp >=3.2.28 && <3.4
default-language: Haskell2010
103 changes: 41 additions & 62 deletions package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: hscim
version: 0.2
version: 0.3.0
synopsis: ...
description: ...
homepage: https://github.com/wireapp/hscim/README.md
Expand Down Expand Up @@ -33,45 +33,45 @@ default-extensions:
extra-source-files:
- README.md


dependencies:
- aeson
- aeson-qq
- attoparsec
- base >= 4.11 && < 5
- bytestring
- email-validate
- errors
- hashable
- hedgehog
- hspec
- hspec-expectations
- hspec-wai
- http-api-data
- http-media
- http-types
- hw-hspec-hedgehog
- list-t
- microlens
- mmorph
- mtl
- network-uri
- network-uri-static >= 0.1.1.0
- scientific
- servant
- servant-server
- servant-server >= 0.14.1
- stm
- stm-containers
- template-haskell
- text
- time
- unordered-containers
- uuid
- vector
- wai
- wai-extra
- wai-logger
- warp
- aeson >= 1.4.5 && < 1.5
- attoparsec >= 0.13.2 && < 0.14
- bytestring >= 0.10.8 && < 0.11
- base >= 4.12 && < 4.13
- scientific >= 0.3.6 && < 0.4
- hashable >= 1.2.7 && < 1.4
- text >= 1.2.3 && < 1.3
- time >= 1.8.0 && < 1.9
- template-haskell >= 2.14.0 && < 2.15
- unordered-containers >= 0.2.10 && < 0.3
- vector >= 0.12.0 && < 0.13
- aeson-qq >= 0.8.2 && < 0.9
- mtl >= 2.2.2 && < 2.3
- email-validate >= 2.3.2 && < 2.4
- errors >= 2.3.0 && < 2.4
- stm >= 2.5.0 && < 2.6
- hedgehog >= 1.0.1 && < 1.1
- mmorph >= 1.1.3 && < 1.2
- hspec >= 2.7.1 && < 2.8
- hspec-wai >= 0.9.2 && < 0.10
- hspec-expectations >= 0.8.2 && < 0.9
- http-types >= 0.12.3 && < 0.13
- wai >= 3.2.2 && < 3.3
- wai-extra >= 3.0.28 && < 3.1
- wai-logger >= 2.3.5 && < 2.4
- http-api-data >= 0.4.1 && < 0.5
- http-media >= 0.8.0 && < 0.9
- hw-hspec-hedgehog >= 0.1.0 && < 0.2
- list-t >= 1.0.4 && < 1.1
- microlens >= 0.4.10 && < 0.5
- network-uri >= 2.6.1 && < 2.7
- network-uri-static >= 0.1.2 && < 0.2
- servant >= 0.16.2 && < 0.17
- servant-server >= 0.16.2 && < 0.17
- warp >= 3.2.28 && < 3.4
- stm-containers >= 1.1.0 && < 1.2
- uuid >= 1.3.13 && < 1.4

ghc-options: -Wall -Werror

Expand All @@ -85,35 +85,14 @@ executables:
source-dirs: server
dependencies:
- hscim
- warp

tests:
spec:
main: Spec.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N
source-dirs:
- test
build-tools:
- hspec-discover:hspec-discover
dependencies:
- hscim
- aeson
- aeson-qq
- base
- bytestring
- containers
- hedgehog
- hspec
- hspec-discover
- hspec-expectations
- hspec-wai
- http-types
- hw-hspec-hedgehog
- mtl
- servant-server
- stm-containers
- template-haskell
- text
- time
- vector
- wai-extra
- wai-logger
- warp
2 changes: 1 addition & 1 deletion server/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Web.Scim.Capabilities.MetaSchema as MetaSchema
import Data.Time
import Network.Wai.Handler.Warp
import Network.URI.Static
import qualified STMContainers.Map as STMMap
import qualified StmContainers.Map as STMMap
import Control.Monad.STM (atomically)
import Text.Email.Validate

Expand Down
Loading

0 comments on commit af22d89

Please sign in to comment.