forked from crytic/echidna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (44 loc) · 1.28 KB
/
.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Adapted from https://github.com/ChrisPenner/haskell-stack-travis-ci
language: nix
sudo: true
cache:
directories:
- $HOME/.ghc
- $HOME/.cabal
- $HOME/.stack
- .stack-work
matrix:
fast_finish: true
include:
# Add build targets here
- env: GHCVER=8.2.1 CACHE_NAME=8.2.1 BUILD_BINARY=1
compiler: ": #stack 8.2.1"
- env: GHCVER=8.2.1 CACHE_NAME=8.2.1-osx BUILD_BINARY=1
LDFLAGS=-L/usr/local/opt/readline/lib CFLAGS=-I/usr/local/opt/readline/include
os: osx
compiler: ": #stack 8.2.1"
install:
- unset CC
- export PATH=$HOME/.local/bin:$PATH
- ./.travis/install-ghr.sh
- ./.travis/install-stack.sh
script:
- echo "$(stack ghc -- --version) [$(stack ghc -- --print-project-git-commit-id 2> /dev/null || echo '?')]"
- GHC_OPTIONS="-Werror"
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
stack install readline --extra-include-dirs=/usr/local/opt/readline/include
--extra-lib-dirs=/usr/local/opt/readline/lib;
fi
- |
set -ex
# Run tests
stack --no-terminal test --ghc-options="$GHC_OPTIONS"
set +ex
after_success:
- |
# Build and ship binary
export BUILD_BINARY=true
export TRAVIS_TAG=$(git rev-parse HEAD)
./.travis/attach-binary.sh
notifications:
email: false