2015-10-20 06:23:20 +00:00
|
|
|
# Use new container infrastructure to enable caching
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
# Choose a lightweight base image; we provide our own build tools.
|
|
|
|
language: c
|
|
|
|
|
|
|
|
# GHC depends on GMP. You can add other dependencies here as well.
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libgmp-dev
|
|
|
|
|
2015-03-25 08:00:18 +00:00
|
|
|
env:
|
2015-03-25 08:03:41 +00:00
|
|
|
global:
|
2015-03-25 08:00:18 +00:00
|
|
|
- SIG_USER=commercial
|
|
|
|
- secure: "HGTGThYIkhnrXPPAkPLsYQjSC1z3Z3vp71n1U04yBPHlzfn3Tp/xv0wPAayy4EPj6XrjQuEGjYRKoKHflOVNWWbv+CrAEWL2pghssiBoDgox13Pwg+L4C59/B3cz+eLAyQ0Zu0IOub7lOGhZ7esTVwEPpPFCzlUWATuPn+kzn5A="
|
|
|
|
|
|
|
|
before_install:
|
2015-10-20 06:23:20 +00:00
|
|
|
# Download and unpack the stack executable
|
|
|
|
- mkdir -p ~/.local/bin
|
|
|
|
- export PATH=$HOME/.local/bin:$PATH
|
|
|
|
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
|
2015-03-25 08:00:18 +00:00
|
|
|
|
|
|
|
install:
|
2015-10-20 09:30:03 +00:00
|
|
|
- (cd src/soh-upload && stack $ARGS --no-terminal --install-ghc test --pedantic --haddock --copy-bins)
|
2015-03-25 08:00:18 +00:00
|
|
|
|
|
|
|
# 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.
|
|
|
|
script:
|
2015-10-25 06:18:22 +00:00
|
|
|
- if [ $TRAVIS_BRANCH = 'master' -a $TRAVIS_PULL_REQUEST = 'false' ]; then ./src/soh-upload/upload.sh; fi
|
2015-10-20 06:23:20 +00:00
|
|
|
|
|
|
|
# Caching so the next build will be fast too.
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.stack
|