-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
42 lines (34 loc) · 886 Bytes
/
.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
sudo: false
language: haskell
env:
- GHC_VERSION=7.10.3
install:
- mkdir -p ~/bin
- curl -sL -o - https://github.com/commercialhaskell/stack/releases/download/v1.0.2/stack-1.0.2-linux-x86_64.tar.gz | tar xfzO - --no-anchored stack > ~/bin/stack
- chmod +x ~/bin/stack
- export PATH=/opt/ghc/$GHC_VERSION/bin:$PATH
- export GHC_OPTIONS="-rtsopts -threaded"
- export STACK="$HOME/bin/stack --system-ghc -j2"
script:
- $STACK build --ghc-options "$GHC_OPTIONS"
- $STACK install --ghc-options "$GHC_OPTIONS"
- cp ~/.local/bin/upcast .
- strip -p --strip-unneeded --remove-section=.comment upcast
- upx upcast
cache:
directories:
- $HOME/.stack/build-plan-cache
- $HOME/.stack/snapshots/x86_64-linux/lts-*
- $HOME/bin
addons:
apt:
packages:
- libgmp3-dev
- upx-ucl
- binutils
- ghc-7.10.3
sources:
- hvr-ghc
artifacts:
paths:
- upcast