git.iko.soy/typeable/cabal2nix
on master help sign in
travis.yml: use new container infrastructure and build with stack
commitb18d95f1a5132af0331daee71da78f54d18c08af authorPeter Simons <simons@cryp.to> dateThu 3 Sep 2015, 21:41 (11 years ago) parenta33c857
1 file changed+15−12
.travis.yml+15−12
.travis.yml+15−12
@@ -1,20 +1,23 @@
11# .travis.yml
22
3−env:
4− - CABALVER=1.22 GHCVER=7.10.2
3+language: haskell
4+
5+sudo: false
6+
7+cache:
8+ directories:
9+ - $HOME/.stack
510
611before_install:
7− - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
8− - travis_retry sudo apt-get update
9− - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER happy alex
10− - export PATH=$HOME/.cabal/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
12+ - mkdir -p $HOME/.local/bin
13+ - export PATH=$HOME/.local/bin:$PATH
14+ - travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.3.1/stack-0.1.3.1-x86_64-linux.gz | gunzip > $HOME/.local/bin/stack
15+ - chmod a+x $HOME/.local/bin/stack
16+ - stack setup
1117
1218install:
13− - cabal --version
14− - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
15− - travis_retry cabal update
16− - cabal install hpack
19+ - stack build hscolour --copy-bins
20+ - stack build --only-snapshot
1721
1822script:
19− - make
20− - make check
23+ - stack build --test --haddock