mirror of
https://github.com/barrucadu/dejafu.git
synced 2024-12-22 04:51:41 +03:00
32 lines
681 B
YAML
32 lines
681 B
YAML
|
# Set-up
|
||
|
sudo: false
|
||
|
|
||
|
language: c
|
||
|
|
||
|
# Cache builds
|
||
|
cache:
|
||
|
directories:
|
||
|
- $HOME/.ghc
|
||
|
- $HOME/.cabal
|
||
|
- $HOME/.stack
|
||
|
|
||
|
# Build matrix configuration
|
||
|
matrix:
|
||
|
include:
|
||
|
- env: RESOLVER="lts-5"
|
||
|
addons: {apt: {packages: [ghc-7.10.3], sources: [hvr-ghc]}}
|
||
|
- env: RESOLVER="nightly"
|
||
|
addons: {apt: {packages: [libgmp-dev]}}
|
||
|
allow_failures:
|
||
|
- env: RESOLVER="nightly"
|
||
|
|
||
|
# 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
|