forked from laserpants/hashids-haskell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (30 loc) · 858 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Adapted from https://github.com/commercialhaskell/stack
language: nix
sudo: false
cache:
directories:
- $HOME/.ghc
- $HOME/.cabal
- $HOME/.stack
- .stack-work
matrix:
fast_finish: true
include:
# Add build targets here
- env: GHCVER=8.0.2 CACHE_NAME=8.0.2
compiler: ": #stack 8.0.2"
addons: {apt: {packages: [ghc-8.0.2], sources: [hvr-ghc]}}
- env: GHCVER=8.2.1 CACHE_NAME=8.2.1
compiler: ": #stack 8.2.1"
addons: {apt: {packages: [ghc-8.2.1], sources: [hvr-ghc]}}
install:
- unset CC
- export PATH=$HOME/.local/bin:/opt/ghc/$GHCVER/bin:$PATH
- ./.travis-setup.sh
script:
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
- GHC_OPTIONS="-Werror"
- |
set -ex
stack --no-terminal test --ghc-options="$GHC_OPTIONS"
set +ex