commit f109487169671be83f101aaaeacce0ed94119480 parent 61cf72e193d0a98560bc0fddb15054e3fdecf067 Author: Jared Tobin <jared@jtobin.ca> Date: Tue, 9 Feb 2016 21:47:29 +1300 More fiddling with travis. Diffstat:
M | .travis.yml | | | 31 | +++++++++++++++---------------- |
M | stack.yaml | | | 6 | ------ |
2 files changed, 15 insertions(+), 22 deletions(-)
diff --git a/.travis.yml b/.travis.yml @@ -1,23 +1,22 @@ sudo: false +language: c -env: - STACK_YAML: stack.yml +addons: + apt: + packages: + - libgmp-dev -cache: - directories: - - "~/.stack" +env: +- ARGS="--resolver lts-5.1" +- ARGS="--resolver nightly" before_install: - - mkdir -p ~/.local/bin - - export PATH=~/.local/bin:$PATH - - travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.10.1/stack-0.1.10.1-${TRAVIS_OS_NAME}-x86_64.tar.gz | tar xz - - mv stack-0.1.10.1-${TRAVIS_OS_NAME}-x86_64/stack ~/.local/bin +- mkdir -p ~/.local/bin +- export PATH=$HOME/.local/bin:$PATH +- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack' -install: - - stack --no-terminal --skip-ghc-check setup - - stack --no-terminal --skip-ghc-check build --copy-bins - -addons: - apt: - packages: [libgmp-dev] +script: stack $ARGS --no-terminal --install-ghc test --haddock +cache: + directories: + - $HOME/.stack diff --git a/stack.yaml b/stack.yaml @@ -1,10 +1,4 @@ resolver: lts-5.1 -system-ghc: false -install-ghc: true -compiler: ghc-7.10.3 -compiler-check: newer-minor -require-stack-version: ">= 0.1.7" - packages: ['.'] extra-deps: [] flags: {}