-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
95 lines (86 loc) · 2.67 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
sudo: false
language: c
cache:
directories:
- $HOME/.stack
addons:
apt:
packages:
- libgmp-dev
- gcc
- make
- ruby
- ruby-dev
- rpm
homebrew:
packages:
- libyaml
matrix:
fast_finish: true
include:
- stage: Test
name: linux-gcc
os: linux
env: KIT_BUILD_TOOLCHAIN=linux-gcc
- stage: Test
name: linux-clang
os: linux
env: KIT_BUILD_TOOLCHAIN=linux-clang
- stage: Test
name: darwin-gcc
os: osx
env: KIT_BUILD_TOOLCHAIN=darwin-gcc
- stage: Test
name: darwin-clang
os: osx
env: KIT_BUILD_TOOLCHAIN=darwin-clang
- stage: Test
name: windows-mingw
os: windows
env: KIT_BUILD_TOOLCHAIN=windows-mingw
- stage: Upload
name: upload Linux packages
if: env(TRAVIS_PULL_REQUEST) = "false"
os: linux
script: 'bash ./.packages/linux.sh'
- stage: Upload
name: upload MacOS package
if: env(TRAVIS_PULL_REQUEST) = "false"
os: osx
script: 'bash ./.packages/osx.sh'
- stage: Test Package Install
name: "test Linux package install"
if: branch IN (master, dev) AND env(TRAVIS_PULL_REQUEST) = "false"
os: linux
env:
- KIT_BUILD_TOOLCHAIN: linux-gcc
before_install: skip
install: skip
script: 'bash ./.packages/install_test.sh'
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'; stack setup > /tmp/out; 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'; stack setup > /tmp/out; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then travis_retry curl -L https://get.haskellstack.org/stable/windows-x86_64.tar.gz | tar xz --strip-components=1 -C ~/.local/bin --wildcards '*/stack.exe'; stack setup > /tmp/out; fi
install:
- travis_wait stack --no-terminal --install-ghc test --only-dependencies --verbosity warn --fast
script:
- "gcc --version"
- "clang --version"
- stack build kitlang:kitc --verbosity warn --fast
- stack exec kitc -- -h
- stack exec kitc -- --env
- TEST_RUNS=1 stack test --test-arguments '+RTS -N -RTS'
- stack install
notifications:
webhooks:
urls:
- https://discordapp.com/api/webhooks/531220869075435520/8jqea-tWQhozjCKAWVFnZ7LwWyirOH3tzMKWxnbymIflVUYWrMJ2NhgbUYMUAA2hQcyJ
- https://webhooks.gitter.im/e/527960c420198d3dc02a
on_success: change
on_failure: always
on_start: never
email:
on_success: change
on_failure: change