mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-02-05 19:10:26 +01:00
Use stack for downloading GHC #734
This commit is contained in:
parent
4fae0e36b1
commit
7762ee4688
34
.travis.yml
34
.travis.yml
@ -1,25 +1,27 @@
|
|||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
addons:
|
language: haskell
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- hvr-ghc
|
|
||||||
packages:
|
|
||||||
- ghc-7.10.1
|
|
||||||
- cabal-install-1.22
|
|
||||||
|
|
||||||
# Note: the distinction between `before_install` and `install` is not important.
|
|
||||||
before_install:
|
|
||||||
- export PATH=/opt/ghc/7.10.1/bin:/opt/cabal/1.22/bin:$PATH
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- cabal --version
|
# Get stackage-curator
|
||||||
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
|
|
||||||
- travis_retry cabal update
|
|
||||||
- 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
|
||||||
|
|
||||||
# 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.
|
# 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
|
||||||
|
- ./stack setup 7.10
|
||||||
|
- ./stack --resolver nightly-2015-08-12 build cabal-install
|
||||||
|
|
||||||
|
# Update the index
|
||||||
|
- travis_retry ./stack exec cabal update
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./stackage-curator check
|
- ./stack --resolver 7.10 exec ./stackage-curator check
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.stack
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user