git.iko.soy/typeable/cabal2nix
on master help sign in
travis.yml: use new container infrastructure and build with stack
b18d95fPeter Simons
.travis.yml+15−12
@@ -1,20 +1,23 @@
1# .travis.yml
1# .travis.yml
2
2
3−env:
3+language: haskell
4− - CABALVER=1.22 GHCVER=7.10.2
4+
5+sudo: false
6+
7+cache:
8+ directories:
9+ - $HOME/.stack
5
10
6before_install:
11before_install:
7− - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
12+ - mkdir -p $HOME/.local/bin
8− - travis_retry sudo apt-get update
13+ - export PATH=$HOME/.local/bin:$PATH
9− - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER happy alex
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
10− - export PATH=$HOME/.cabal/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
15+ - chmod a+x $HOME/.local/bin/stack
16+ - stack setup
11
17
12install:
18install:
13− - cabal --version
19+ - stack build hscolour --copy-bins
14− - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
20+ - stack build --only-snapshot
15− - travis_retry cabal update
16− - cabal install hpack
17
21
18script:
22script:
19− - make
23+ - stack build --test --haddock
20− - make check