Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve travis #4

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
sudo: false
language: haskell

ghc:
- 7.6
- 7.8
Expand All @@ -9,7 +11,20 @@ env:
- FLAGS=normalize-v4-signature-date CONSTRAINTS='time>=1.5'
- FLAGS=-normalize-v4-signature-date CONSTRAINTS='time>=1.5'

cache:
directories:
- $HOME/.ghc-time-1.4
- $HOME/.cabal-time-1.4
- $HOME/.ghc-time-1.5
- $HOME/.cabal-time-1.5

before_install:
- rm -rf $HOME/.cabal $HOME/.ghc
- if [ "$CONSTRAINTS" = 'time<1.5' ] ; then mkdir -p $HOME/.ghc-time-1.4 ; ln -s $HOME/.ghc-time-1.4 $HOME/.ghc ; else mkdir -p $HOME/.ghc-time-1.5 ; ln -s $HOME/.ghc-time-1.5 $HOME/.ghc ; fi
- if [ "$CONSTRAINTS" = 'time<1.5' ] ; then mkdir -p $HOME/.cabal-time-1.4 ; ln -s $HOME/.cabal-time-1.4 $HOME/.cabal ; else mkdir -p $HOME/.cabal-time-1.5 ; ln -s $HOME/.cabal-time-1.5 $HOME/.cabal ; fi

install:
- cabal update
- travis_retry cabal install --only-dependencies --enable-tests --flags="$FLAGS" --constraint="$CONSTRAINTS" --force-reinstalls

script:
Expand Down