mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-30 12:50:24 +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 '?')]"
|
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
|
||||||
- travis_retry cabal update
|
- travis_retry cabal update
|
||||||
- cabal install alex happy
|
- 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.
|
# 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:
|
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
|
- yesod keter
|
||||||
- mkdir -p to-travis
|
- mkdir -p to-travis
|
||||||
- cp stackage-server.keter 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.Config
|
||||||
import Yesod.Default.Util (addStaticContentExternal)
|
import Yesod.Default.Util (addStaticContentExternal)
|
||||||
import Yesod.GitRepo
|
import Yesod.GitRepo
|
||||||
import Stackage.ServerBundle (SnapshotType, DocMap)
|
import Stackage.Types
|
||||||
import Stackage.BuildPlan (BuildPlan)
|
|
||||||
|
|
||||||
-- | The site argument for your application. This can be a good place to
|
-- | The site argument for your application. This can be a good place to
|
||||||
-- keep settings and values requiring initialization before your application
|
-- 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 System.Timeout.Lifted (timeout)
|
||||||
import Control.Concurrent.Async (async, cancel, waitCatchSTM)
|
import Control.Concurrent.Async (async, cancel, waitCatchSTM)
|
||||||
import Yesod.Core.Types (HandlerT (..))
|
import Yesod.Core.Types (HandlerT (..))
|
||||||
import Stackage.ServerBundle
|
import Stackage.Types
|
||||||
import Stackage.BuildPlan
|
|
||||||
import Stackage.BuildConstraints
|
|
||||||
import Stackage.Prelude (display)
|
|
||||||
import Filesystem (createTree)
|
import Filesystem (createTree)
|
||||||
import Filesystem.Path (parent)
|
import Filesystem.Path (parent)
|
||||||
import Data.Conduit.Process
|
import Data.Conduit.Process
|
||||||
|
|||||||
@ -156,13 +156,13 @@ library
|
|||||||
, blaze-html
|
, blaze-html
|
||||||
, haddock-library
|
, haddock-library
|
||||||
, async
|
, async
|
||||||
, stackage >= 0.4
|
|
||||||
, yesod-gitrepo >= 0.1.1
|
, yesod-gitrepo >= 0.1.1
|
||||||
, hoogle
|
, hoogle
|
||||||
, spoon
|
, spoon
|
||||||
, deepseq
|
, deepseq
|
||||||
, deepseq-generics
|
, deepseq-generics
|
||||||
, auto-update
|
, auto-update
|
||||||
|
, stackage-types
|
||||||
|
|
||||||
executable stackage-server
|
executable stackage-server
|
||||||
if flag(library-only)
|
if flag(library-only)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user