-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
52 lines (52 loc) · 1.45 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
sudo: true
language: c
cache:
directories:
- "$HOME/.ghc"
- "$HOME/.stack"
matrix:
include:
- env: RELEASEOS="Linux" ARGS="--resolver lts-6"
compiler: ": #stack 7.10.3"
addons:
apt:
packages:
- libgmp-dev
- ghc
- zip
- env: ARGS="--resolver nightly"
compiler: ": #stack nightly"
addons:
apt:
packages:
- libgmp-dev
- ghc
- zip
- env: RELEASEOS="MacOS" ARGS="--resolver lts-6"
compiler: ": #stack 7.10.3 osx"
os: osx
- env: ARGS="--resolver nightly"
compiler: ": #stack nightly osx"
os: osx
allow_failures:
- env: ARGS="--resolver nightly"
before_install:
- unset CC
- export PATH=$HOME/.local/bin:$PATH
- mkdir -p ~/.local/bin
- |
if [ `uname` = "Darwin" ]
then
curl --insecure -L https://www.stackage.org/stack/osx-x86_64 | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin
else
curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
fi
install:
- if [ -f configure.ac ]; then autoreconf -i; fi
script:
- stack test --no-terminal --install-ghc $ARGS --only-dependencies --ghc-options="-O2"
- stack install --test --no-terminal $ARGS --local-bin-path="." --ghc-options="-O2 -Wall"
after_success:
- zip Haskell-Console.zip Haskell-Console
- chmod +x .travis/github-release.sh
- cd .travis && ./github-release.sh "$RELEASEOS" "$TRAVIS_REPO_SLUG" "Haskell-Console.zip"