Skip to content

Commit

Permalink
Fixes for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mgsloan committed Aug 2, 2015
1 parent 049d4c0 commit 3e7d674
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 37 deletions.
52 changes: 17 additions & 35 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,29 @@
matrix:
include:
- env: GHCVER=7.8.4 STACK_YAML=stack-7.8.yaml
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-7.8.4
- env: GHCVER=7.10.1 STACK_YAML=stack.yaml
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-7.10.1
- env: GHCVER=7.10.2 STACK_YAML=stack.yaml
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-7.10.2
- env: GHCVER=head STACK_YAML=stack.yaml
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-head
allow_failures:
- env: GHCVER=head STACK_YAML=stack.yaml
- env: GHCVER=7.8.4 CABALVER=1.18 STACK_YAML=stack-7.8.yaml
- env: GHCVER=7.10.1 CABALVER=1.22 STACK_YAML=stack.yaml
- env: GHCVER=7.10.2 CABALVER=1.22 STACK_YAML=stack.yaml

# Disabled until haddock-api supports it
# - env: GHCVER=head CABALVER=1.22 STACK_YAML=stack.yaml
# allow_failures:
# - env: GHCVER=head STACK_YAML=stack.yaml

before_install:
# ghc
- travis_retry sudo add-apt-repository -y ppa:hvr/ghc
- travis_retry sudo apt-get update
- travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
# stack
- mkdir -p ~/.local/bin
- export PATH=~/.local/bin:/opt/ghc/$GHCVER/bin:$PATH
- export PATH=~/.local/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
- travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.2.0/stack-0.1.2.0-x86_64-linux.gz | gunzip > ~/.local/bin/stack
- chmod a+x ~/.local/bin/stack

install:
- ./travis_long stack --no-terminal --skip-ghc-check setup
- ./travis_long stack --no-terminal --skip-ghc-check test --only-snapshot
- ./travis_long stack --no-terminal --skip-ghc-check test --only-snapshot -j1

script:
- ./travis_long stack --no-terminal --skip-ghc-check build ide-backend-server
- ./travis_long stack --no-terminal --skip-ghc-check test
- ./travis_long stack --no-terminal --skip-ghc-check build
- ./travis_long stack --no-terminal --skip-ghc-check test ide-backend:TestSuite --test-arguments "-j2"
- ./travis_long stack --no-terminal --skip-ghc-check test ide-backend:rpc-server
2 changes: 1 addition & 1 deletion ide-backend-server/ide-backend-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ executable ide-backend-server
Posix
RTS
build-depends: base < 10,
ghc == 7.4.* || == 7.8.* || == 7.10.*,
ghc == 7.4.* || == 7.8.* || == 7.10.* || == 7.11.*,
containers >= 0.4.1 && < 1,
bytestring >= 0.9.2 && < 1,
data-accessor >= 0.2 && < 0.3,
Expand Down
5 changes: 4 additions & 1 deletion ide-backend/ide-backend.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ test-suite TestSuite
random,
Cabal-ide-backend,
containers,
deepseq
deepseq,
-- Dependencies of test suite at runtime
parallel,
monads-tf
default-language: Haskell2010
ghc-options: -Wall
-threaded
Expand Down

0 comments on commit 3e7d674

Please sign in to comment.