2016-05-03 21:17:06 +03:00
|
|
|
# Set-up
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
language: c
|
|
|
|
|
|
|
|
# Cache builds
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.ghc
|
|
|
|
- $HOME/.cabal
|
|
|
|
- $HOME/.stack
|
|
|
|
|
|
|
|
# Build matrix configuration
|
|
|
|
matrix:
|
|
|
|
include:
|
2016-05-26 14:41:10 +03:00
|
|
|
- env: RESOLVER="lts-3"
|
2016-10-22 18:02:31 +03:00
|
|
|
addons: {apt: {packages: [libgmp-dev]}}
|
2016-05-26 14:41:10 +03:00
|
|
|
- env: RESOLVER="lts-4"
|
2016-10-22 18:02:31 +03:00
|
|
|
addons: {apt: {packages: [libgmp-dev]}}
|
2016-05-03 21:17:06 +03:00
|
|
|
- env: RESOLVER="lts-5"
|
2016-10-22 18:02:31 +03:00
|
|
|
addons: {apt: {packages: [libgmp-dev]}}
|
2016-05-26 14:41:10 +03:00
|
|
|
- env: RESOLVER="lts-6"
|
2016-10-22 18:02:31 +03:00
|
|
|
addons: {apt: {packages: [libgmp-dev]}}
|
2016-09-16 03:52:45 +03:00
|
|
|
- env:
|
|
|
|
- RESOLVER="lts-7"
|
2016-10-22 18:02:31 +03:00
|
|
|
addons: {apt: {packages: [libgmp-dev]}}
|
2016-06-06 00:49:00 +03:00
|
|
|
- env:
|
|
|
|
- RESOLVER="nightly"
|
2016-05-03 21:17:06 +03:00
|
|
|
addons: {apt: {packages: [libgmp-dev]}}
|
|
|
|
|
|
|
|
# Download and unpack the stack executable
|
|
|
|
before_install:
|
|
|
|
- export PATH=/opt/ghc/$GHCVER/bin:$HOME/.local/bin:$PATH
|
|
|
|
- mkdir -p ~/.local/bin
|
|
|
|
- curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
|
|
|
|
|
|
|
|
# Run tests
|
|
|
|
script:
|
|
|
|
- ./test-build.sh
|