Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update travis build file; test only with latest GHC

  • Loading branch information...
commit 5070abcf2a1f0b2aaaa6d9dd1b7edd4c8ba5cc3c 1 parent 8562cd0
@MedeaMelana authored
Showing with 13 additions and 23 deletions.
  1. +13 −23 .travis.yml
View
36 .travis.yml
@@ -1,35 +1,25 @@
env:
- - GHCVER=7.8.2
+ - CABALVER=1.22 GHCVER=7.10.2
before_install:
- 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
- - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.18/bin:$PATH
+ - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
+ - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
install:
- - cd Magic-CLI
- - cabal sandbox init
- - cabal sandbox add-source ../Magic
- - cabal sandbox add-source ../Magic-Cards
- - cabal update
- - cabal install --dependencies-only
+ - cabal --version
+ - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
+ - travis_retry cabal update
- - cd ../Magic-Web-Server
- cabal sandbox init
- - cabal sandbox add-source ../Magic
- - cabal sandbox add-source ../Magic-Cards
- - cabal update
- - cabal install --dependencies-only
-
+ - cabal sandbox add-source Magic
+ - cabal sandbox add-source Magic-Cards
+ - cabal sandbox add-source Magic-CLI
+ - cabal sandbox add-source Magic-Web-Server
+ - cabal install --only-dependencies --enable-tests --enable-benchmarks Magic Magic-Cards Magic-CLI Magic-Web-Server
# 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:
- - cd ../Magic-CLI
- - cabal configure
- - cabal build
-
- - cd ../Magic-Web-Server
- - cabal configure
- - cabal build
-
+ - if [ -f configure.ac ]; then autoreconf -i; fi
+ - cabal install --enable-tests --enable-benchmarks Magic Magic-Cards Magic-CLI Magic-Web-Server
Please sign in to comment.
Something went wrong with that request. Please try again.