mirror of
https://github.com/stackbuilders/hapistrano.git
synced 2024-11-28 08:57:00 +03:00
d66bb9b0db
We should test with Cabal, not stack, because it allows to test in more adverse environment, test with GHC versions that are not yet in snapshorts, and generally improve compatibility. This script tests with Cabal 1.24, as it's compatible with all GHC versions of interest and has a better dependency resolution algorithm that allows to avoid some problems with builds. I also would like to impose 100% Haddock coverage here.
94 lines
3.5 KiB
Plaintext
94 lines
3.5 KiB
Plaintext
name: hapistrano
|
|
version: 0.2.1.2
|
|
synopsis: A deployment library for Haskell applications
|
|
description:
|
|
.
|
|
Hapistrano makes it easy to reliably deploy Haskell applications
|
|
to a server.
|
|
.
|
|
Following popular libraries like Ruby's <http://capistranorb.com/
|
|
Capistrano>, Hapistrano does the work of building the application
|
|
with dependencies into a distinct folder, and then atomically moves
|
|
a symlink to the latest complete build.
|
|
.
|
|
This allows for atomic switchovers to new application code after the
|
|
build is complete. Rollback is even simpler, since Hapistrano can
|
|
just point the `current` symlink to the previous release.
|
|
.
|
|
See <https://github.com/stackbuilders/hapistrano the project readme on GitHub>
|
|
for more information.
|
|
.
|
|
license: MIT
|
|
license-file: LICENSE
|
|
author: Justin Leitgeb
|
|
maintainer: justin@stackbuilders.com
|
|
copyright: 2015-2017 Stack Builders Inc.
|
|
category: System
|
|
homepage: https://github.com/stackbuilders/hapistrano
|
|
bug-reports: https://github.com/stackbuilders/hapistrano/issues
|
|
build-type: Simple
|
|
cabal-version: >=1.10
|
|
extra-source-files: changes.md README.md
|
|
|
|
flag dev
|
|
description: Turn on development settings.
|
|
manual: True
|
|
default: False
|
|
|
|
library
|
|
hs-source-dirs: src
|
|
exposed-modules: System.Hapistrano
|
|
other-modules: System.Hapistrano.Types
|
|
build-depends: base >= 4.6 && < 5.0
|
|
, either >= 4.0 && < 4.6
|
|
, filepath >= 1.2 && < 1.5
|
|
, mtl >= 2.0 && < 3.0
|
|
, process >= 1.4 && < 1.5
|
|
, time >= 1.5 && < 1.8
|
|
, transformers >= 0.4 && < 0.6
|
|
if flag(dev)
|
|
ghc-options: -Wall -Werror
|
|
else
|
|
ghc-options: -O2 -Wall
|
|
default-language: Haskell2010
|
|
|
|
executable hap
|
|
hs-source-dirs: app
|
|
main-is: Main.hs
|
|
other-modules: Options
|
|
, Command
|
|
, Flag
|
|
build-depends: base >= 4.6 && < 5.0
|
|
, base-compat >= 0.6 && < 1.0
|
|
, hapistrano
|
|
, optparse-applicative >= 0.11 && < 0.14
|
|
if flag(dev)
|
|
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Werror
|
|
else
|
|
ghc-options: -threaded -rtsopts -with-rtsopts=-N -O2 -Wall
|
|
default-language: Haskell2010
|
|
|
|
test-suite hapistrano-test
|
|
type: exitcode-stdio-1.0
|
|
hs-source-dirs: spec
|
|
main-is: Spec.hs
|
|
other-modules: System.HapistranoSpec
|
|
build-depends: base >= 4.5 && < 5.0
|
|
, directory >= 1.2.2 && < 1.4
|
|
, either >= 4.0 && < 4.6
|
|
, filepath >= 1.2 && < 1.5
|
|
, hapistrano
|
|
, hspec >= 2.0 && < 3.0
|
|
, mtl >= 2.0 && < 3.0
|
|
, process >= 1.4 && < 1.5
|
|
, temporary >= 1.1 && < 1.3
|
|
if flag(dev)
|
|
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Werror
|
|
else
|
|
ghc-options: -threaded -rtsopts -with-rtsopts=-N -O2 -Wall
|
|
default-language: Haskell2010
|
|
|
|
source-repository head
|
|
type: git
|
|
location: https://github.com/stackbuilders/hapistrano
|