-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
53 lines (46 loc) · 1.49 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
51
52
53
sudo: false
language: generic
matrix:
include:
- compiler: "GHC+Stack (OSX)"
os: osx
addons: {apt: {packages: [libgc-dev, libgmp-dev]}}
- compiler: "GHC+Stack (Linux)"
addons: {apt: {packages: [libgc-dev, libgmp-dev]}}
before_install:
# stack
- mkdir -p $HOME/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- |
if [ ! -f $HOME/.local/bin/stack ]; then
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
travis_retry curl --insecure -L https://www.stackage.org/stack/osx-x86_64 | tar xz --strip-components=1 --include '*/stack' -C $HOME/.local/bin
else
travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C $HOME/.local/bin '*/stack'
fi
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew install llvm bdw-gc
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export SIXTEN_ARGS="--llvm-config=$(brew --prefix llvm)/bin/llvm-config"
else
export SIXTEN_ARGS=""
fi
- export STACK_FLAGS='-j 2 --no-terminal --skip-ghc-check'
- stack ${STACK_FLAGS} setup
script:
- stack ${STACK_FLAGS} test --fast --test-arguments "--catch-stderr --sixten-args \"$SIXTEN_ARGS\""
- stack ${STACK_FLAGS} test --fast --test-arguments "--catch-stderr --sixten-args \"-O2 $SIXTEN_ARGS\""
cache:
directories:
- "$HOME/.stack"
- "$HOME/.local/bin"
- "$TRAVIS_BUILD_DIR/.stack-work"
- "$HOME/Library/Caches/Homebrew"
# Allow more time for new caches to be uploaded
timeout: 1000
notifications:
email: false