forked from kitlang/kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (43 loc) · 1.08 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
sudo: false
language: generic
cache:
directories:
- $HOME/.stack
addons:
apt:
packages:
- libgmp-dev
env:
matrix:
- CC=gcc
- CC=clang
os:
- linux
- osx
matrix:
allow_failures:
- os: osx
fast_finish: true
before_install:
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then travis_retry curl -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 -C ~/.local/bin '*/stack'; fi
install:
- stack --no-terminal --install-ghc test --only-dependencies
script:
- "gcc --version"
- "clang --version"
- stack build kitlang:kitc
- stack exec kitc -- -h
- TEST_RUNS=3 stack test
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/527960c420198d3dc02a
on_success: change
on_failure: always
on_start: never
email:
on_success: change
on_failure: change