mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-18 02:08:29 +01:00
Try using a newer Stack version for Travis
This commit is contained in:
parent
fb166ab2cb
commit
f35147dc0b
28
.travis.yml
28
.travis.yml
@ -1,26 +1,36 @@
|
|||||||
|
# Use new container infrastructure to enable caching
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
language: haskell
|
# Choose a lightweight base image; we provide our own build tools.
|
||||||
|
language: c
|
||||||
|
|
||||||
|
# GHC depends on GMP. You can add other dependencies here as well.
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- libgmp-dev
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
# Download and unpack the stack executable
|
||||||
|
- 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'
|
||||||
|
|
||||||
# Get stackage-curator
|
# Get stackage-curator
|
||||||
- wget https://s3.amazonaws.com/stackage-travis/stackage-curator/stackage-curator.bz2
|
- wget https://s3.amazonaws.com/stackage-travis/stackage-curator/stackage-curator.bz2
|
||||||
- bunzip2 stackage-curator.bz2
|
- bunzip2 stackage-curator.bz2
|
||||||
- chmod +x stackage-curator
|
- chmod +x stackage-curator
|
||||||
|
- mv stackage-curator ~/.local/bin
|
||||||
# Get stack
|
|
||||||
- travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.3.0/stack-0.1.3.0-x86_64-linux-gmp4.gz | gunzip > stack
|
|
||||||
- chmod +x stack
|
|
||||||
|
|
||||||
# Install GHC and cabal-install
|
# Install GHC and cabal-install
|
||||||
- ./stack setup 7.10.3
|
- stack setup 7.10.3
|
||||||
- ./stack --resolver ghc-7.10 build stackage-update
|
- stack --resolver ghc-7.10 build stackage-update
|
||||||
|
|
||||||
# Update the index
|
# Update the index
|
||||||
- travis_retry ./stack --resolver ghc-7.10 exec stackage-update
|
- travis_retry stack --resolver ghc-7.10 exec stackage-update
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./stack --resolver ghc-7.10 exec ./stackage-curator check
|
- stack --resolver ghc-7.10 exec stackage-curator check
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user