switch ci to stack and add ci cron job to test hackage breakage
This commit is contained in:
parent
4ccfce2331
commit
1b83d30cf3
2 changed files with 19 additions and 18 deletions
28
.travis.yml
28
.travis.yml
|
@ -3,33 +3,27 @@ sudo: false
|
||||||
language: c
|
language: c
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- GHCVER=7.8.4 CABALVER=1.22
|
- STACK_YAML=stack-ghc-7.8.4.yaml
|
||||||
- GHCVER=7.10.3 CABALVER=1.22
|
- STACK_YAML=stack.yaml
|
||||||
- GHCVER=8.0.1 CABALVER=1.24
|
- STACK_YAML=stack-ghc-8.0.1.yaml
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
|
||||||
- hvr-ghc
|
|
||||||
packages:
|
packages:
|
||||||
- ghc-7.8.4
|
|
||||||
- ghc-7.10.3
|
|
||||||
- ghc-8.0.1
|
|
||||||
- cabal-install-1.22
|
|
||||||
- cabal-install-1.24
|
|
||||||
- libgmp-dev
|
- libgmp-dev
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- (mkdir -p $HOME/.local/bin && cd $HOME/.local/bin && wget https://zalora-public.s3.amazonaws.com/tinc && chmod +x tinc)
|
- mkdir -p ~/.local/bin
|
||||||
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
|
- export PATH=$HOME/.local/bin:$PATH
|
||||||
- ghc --version
|
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
|
||||||
- cabal --version
|
- stack --version
|
||||||
- travis_retry cabal update
|
- stack setup --no-terminal
|
||||||
- sed -i 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config
|
- (cd $HOME/.local/bin && wget https://zalora-public.s3.amazonaws.com/tinc && chmod +x tinc)
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./travis.sh
|
- if [ "$TRAVIS_EVENT_TYPE" = "cron" ] ; then ./scripts/ci-cron.sh ; else stack test --ghc-options=-Werror --no-terminal ; fi
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.tinc/cache
|
- $HOME/.tinc/cache
|
||||||
|
- $HOME/.stack
|
||||||
|
|
|
@ -1,8 +1,15 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -o nounset
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
set -o verbose
|
||||||
|
|
||||||
for package in $(cat sources.txt) doc/tutorial ; do
|
export PATH=$(stack path --bin-path):$PATH
|
||||||
|
|
||||||
|
stack install cabal-install
|
||||||
|
cabal update
|
||||||
|
|
||||||
|
for package in $(cat sources.txt) ; do
|
||||||
echo testing $package
|
echo testing $package
|
||||||
pushd $package
|
pushd $package
|
||||||
tinc
|
tinc
|
Loading…
Reference in a new issue