mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-12 04:08:29 +01:00
stackage-types, simpler travis
This commit is contained in:
parent
ed0d2a8c49
commit
e9aec442e9
10
.travis.yml
10
.travis.yml
@ -24,18 +24,10 @@ install:
|
||||
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
|
||||
- travis_retry cabal update
|
||||
- cabal install alex happy
|
||||
- cabal install --only-dependencies --enable-tests --enable-benchmarks -j1
|
||||
- cabal install --only-dependencies
|
||||
|
||||
# Here starts the actual work to be performed for the package under test; any command which exits with a non-zero exit code causes the build to fail.
|
||||
script:
|
||||
- if [ -f configure.ac ]; then autoreconf -i; fi
|
||||
- cabal configure --enable-tests --enable-benchmarks -v2 # -v2 provides useful information for debugging
|
||||
- cabal build # this builds all libraries and executables (including tests/benchmarks)
|
||||
|
||||
- cabal test
|
||||
- cabal check
|
||||
- cabal sdist # tests that a source-distribution can be generated
|
||||
|
||||
- yesod keter
|
||||
- mkdir -p to-travis
|
||||
- cp stackage-server.keter to-travis
|
||||
|
||||
@ -23,8 +23,7 @@ import Yesod.Core.Types (Logger, GWData)
|
||||
import Yesod.Default.Config
|
||||
import Yesod.Default.Util (addStaticContentExternal)
|
||||
import Yesod.GitRepo
|
||||
import Stackage.ServerBundle (SnapshotType, DocMap)
|
||||
import Stackage.BuildPlan (BuildPlan)
|
||||
import Stackage.Types
|
||||
|
||||
-- | The site argument for your application. This can be a good place to
|
||||
-- keep settings and values requiring initialization before your application
|
||||
|
||||
@ -16,10 +16,7 @@ import qualified Data.ByteString.Base16 as B16
|
||||
import System.Timeout.Lifted (timeout)
|
||||
import Control.Concurrent.Async (async, cancel, waitCatchSTM)
|
||||
import Yesod.Core.Types (HandlerT (..))
|
||||
import Stackage.ServerBundle
|
||||
import Stackage.BuildPlan
|
||||
import Stackage.BuildConstraints
|
||||
import Stackage.Prelude (display)
|
||||
import Stackage.Types
|
||||
import Filesystem (createTree)
|
||||
import Filesystem.Path (parent)
|
||||
import Data.Conduit.Process
|
||||
|
||||
@ -156,13 +156,13 @@ library
|
||||
, blaze-html
|
||||
, haddock-library
|
||||
, async
|
||||
, stackage >= 0.4
|
||||
, yesod-gitrepo >= 0.1.1
|
||||
, hoogle
|
||||
, spoon
|
||||
, deepseq
|
||||
, deepseq-generics
|
||||
, auto-update
|
||||
, stackage-types
|
||||
|
||||
executable stackage-server
|
||||
if flag(library-only)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user