Merge pull request #9 from haskell-servant/jkarni/fix-travis
Use 'master' servant and servant-server for travis.
This commit is contained in:
commit
8ef4b5dbcc
1 changed files with 31 additions and 7 deletions
38
.travis.yml
38
.travis.yml
|
@ -1,15 +1,39 @@
|
||||||
language: haskell
|
language: haskell
|
||||||
|
|
||||||
ghc:
|
env:
|
||||||
- 7.8
|
- GHCVER=7.8.3
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- git clone https://github.com/haskell-servant/servant.git
|
- |
|
||||||
- git clone https://github.com/haskell-servant/servant-server.git
|
if [ $GHCVER = `ghc --numeric-version` ]; then
|
||||||
- cabal sandbox init
|
travis/cabal-apt-install --enable-tests $MODE
|
||||||
- cabal sandbox add-source servant/
|
export CABAL=cabal
|
||||||
- cabal sandbox add-source servant-server/
|
else
|
||||||
|
travis_retry sudo add-apt-repository -y ppa:hvr/ghc
|
||||||
|
travis_retry sudo apt-get update
|
||||||
|
travis_retry sudo apt-get install cabal-install-1.18 ghc-$GHCVER happy
|
||||||
|
export CABAL=cabal-1.18
|
||||||
|
export PATH=/opt/ghc/$GHCVER/bin:$PATH
|
||||||
|
fi
|
||||||
|
- $CABAL update
|
||||||
|
- |
|
||||||
|
if [ $GHCVER = "head" ] || [ $GHCVER = "7.8.3" ]; then
|
||||||
|
$CABAL install happy alex
|
||||||
|
export PATH=$HOME/.cabal/bin:$PATH
|
||||||
|
fi
|
||||||
|
- git clone https://github.com/haskell-servant/servant.git
|
||||||
|
- git clone https://github.com/haskell-servant/servant-server.git
|
||||||
|
- cabal sandbox init
|
||||||
|
- cabal sandbox add-source servant
|
||||||
|
- cabal sandbox add-source servant-server
|
||||||
|
|
||||||
|
install:
|
||||||
|
- cabal install --only-dependencies --enable-tests
|
||||||
|
|
||||||
|
script:
|
||||||
|
- cabal configure --enable-tests
|
||||||
|
- cabal build && cabal test
|
||||||
|
- cabal sdist
|
||||||
notifications:
|
notifications:
|
||||||
irc:
|
irc:
|
||||||
channels:
|
channels:
|
||||||
|
|
Loading…
Reference in a new issue