Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (36 sloc) 1.22 KB
sudo: false
addons:
apt:
sources:
- hvr-ghc
packages:
- cabal-install-1.22
- ghc-7.10.3
- alex-3.1.4
- happy-1.19.5
cache:
bundler: false
directories:
- $HOME/.ghc/
- $HOME/.cabal/bin
- $HOME/.cabal/share
- $HOME/.cabal/lib
before_install:
- if [ -n "$encrypted_4d415b5e837a_key" ]; then openssl aes-256-cbc -K $encrypted_4d415b5e837a_key -iv $encrypted_4d415b5e837a_iv -in travis-deploy-key.enc -out ~/.ssh/id_rsa -d; fi
- if [ -e ~/.ssh/id_rsa ]; then chmod go-rwx ~/.ssh/id_rsa; fi
- export PATH=$HOME/.cabal/bin:$PATH
- export PATH=/opt/cabal/1.22/bin:$PATH
- export PATH=/opt/alex/3.1.4/bin:$PATH
- export PATH=/opt/happy/1.19.5/bin:$PATH
- export PATH=/opt/ghc/7.10.3/bin:$PATH
- du -sh $HOME/.ghc $HOME/.cabal/bin $HOME/.cabal/lib $HOME/.cabal/share
install:
- cabal-1.22 update
- cabal-1.22 install Cabal
- cabal install --dependencies-only --disable-tests
script:
- cabal run rebuild
after_success:
- 'if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_SECURE_ENV_VARS" = "true" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./deploy.sh; fi'
before_cache:
- du -sh $HOME/.ghc $HOME/.cabal/bin $HOME/.cabal/lib $HOME/.cabal/share