2015-07-29 00:05:06 +03:00
|
|
|
language: haskell
|
|
|
|
|
2015-08-21 21:56:17 +03:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2015-07-29 00:05:06 +03:00
|
|
|
sudo: false
|
2015-08-24 20:10:33 +03:00
|
|
|
|
|
|
|
# addons:
|
|
|
|
# apt:
|
|
|
|
# packages:
|
|
|
|
# - libgmp-dev
|
|
|
|
|
2015-07-29 00:05:06 +03:00
|
|
|
cache:
|
|
|
|
directories:
|
2015-07-29 03:04:47 +03:00
|
|
|
- $HOME/.stack/
|
|
|
|
# - "$HOME/.stack-work/"
|
2015-07-29 00:05:06 +03:00
|
|
|
|
|
|
|
before_install:
|
2015-07-29 03:04:47 +03:00
|
|
|
- mkdir -p ~/.local/bin
|
|
|
|
- export PATH=~/.local/bin:$PATH
|
2015-08-13 22:30:04 +03:00
|
|
|
- travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.3.1/stack-0.1.3.1-x86_64-linux.gz | gunzip > ~/.local/bin/stack
|
2015-07-29 03:04:47 +03:00
|
|
|
- chmod a+x ~/.local/bin/stack
|
2015-07-29 00:05:06 +03:00
|
|
|
|
2015-08-24 20:10:33 +03:00
|
|
|
# install:
|
|
|
|
# - stack setup
|
|
|
|
# - stack build --only-snapshot
|
|
|
|
|
|
|
|
# script:
|
|
|
|
# - stack build --test
|
2015-07-29 00:05:06 +03:00
|
|
|
|
|
|
|
script:
|
2015-08-24 20:10:33 +03:00
|
|
|
- stack +RTS -N2 -RTS --install-ghc --no-terminal build --test
|
2015-07-29 01:34:11 +03:00
|
|
|
|
2015-07-29 02:34:20 +03:00
|
|
|
# coveralls.io coverage reports
|
|
|
|
# after_script:
|
|
|
|
# - "cabal install hpc-coveralls"
|
|
|
|
# - "hpc-coveralls count-von-count-tests --exclude-dir=tests --exclude-dir=src/Gyrid --display-report"
|
2015-07-29 01:34:11 +03:00
|
|
|
|
2015-07-29 02:34:20 +03:00
|
|
|
notifications:
|
2015-07-29 01:34:11 +03:00
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "chat.freenode.net#hledger"
|
|
|
|
on_success: change # [always|never|change] default: always
|
|
|
|
on_failure: change # default: always
|
|
|
|
use_notice: true
|
2015-07-29 02:48:19 +03:00
|
|
|
skip_join: true
|
2015-07-29 02:34:20 +03:00
|
|
|
# If you enable skip_join, remember to remove the NO_EXTERNAL_MSGS flag (n) on the IRC channel(s) the bot notifies.
|
|
|
|
template:
|
|
|
|
- "%{commit}: %{message} %{build_url}"
|
|
|
|
# - "%{repository_name} (%{commit}) : %{message} %{build_url}"
|
2015-07-29 01:34:11 +03:00
|
|
|
# You can interpolate the following variables:
|
|
|
|
# repository_slug: your GitHub repo identifier (like svenfuchs/minimal)
|
|
|
|
# repository_name: the slug without the username
|
|
|
|
# repository: same as repository_slug [Deprecated]
|
|
|
|
# build_number: build number
|
|
|
|
# build_id: build id
|
|
|
|
# branch: branch build name
|
|
|
|
# commit: shortened commit SHA
|
|
|
|
# author: commit author name
|
|
|
|
# commit_message: commit message of build
|
|
|
|
# commit_subject: first line of the commit message
|
|
|
|
# result: result of build
|
|
|
|
# message: travis message to the build
|
|
|
|
# duration: duration of the build
|
|
|
|
# compare_url: commit change view URL
|
|
|
|
# build_url: URL of the build detail
|
|
|
|
# The default template is:
|
2015-07-29 02:34:20 +03:00
|
|
|
# - "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
|
|
|
|
# - "Change view : %{compare_url}"
|
|
|
|
# - "Build details : %{build_url}"
|
2015-07-29 01:34:11 +03:00
|
|
|
|
2015-07-29 02:34:20 +03:00
|
|
|
# email: # false
|
|
|
|
# recipients:
|
|
|
|
# - one@example.com
|
|
|
|
# - other@example.com
|
|
|
|
# on_success: [always|never|change] # default: change
|
|
|
|
# on_failure: [always|never|change] # default: always
|