-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (38 loc) · 1.7 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
sudo: false
language: generic
os:
- linux
- osx
cache:
directories:
- "$HOME/.stack"
- $TRAVIS_BUILD_DIR/.stack-work
addons:
apt:
packages:
- libgmp-dev
before_install:
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- |
if [ $TRAVIS_OS_NAME = "osx" ]
then
travis_retry curl --insecure -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin
else
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
install:
- stack --no-terminal --install-ghc test --only-dependencies
script:
- stack --no-terminal test --haddock --no-haddock-deps --executable-stripping --library-stripping --ghc-options=-Werror
before_deploy: "mkdir deploy && mv `stack exec -- which ohuac` deploy/ohuac-$TRAVIS_OS_NAME"
deploy:
provider: releases
skip_cleanup: true
file_glob: true
api_key:
secure: teUtqm38oILfBDKk4/S4DrO+n1+gO4Tz2L+1FRtwp0k8vj1hyxWgu1IoiREBTf9trQyBMa/vW0EegHt7SB+LP3tF8s8YRQveiQMcw6HDiMhHzfRfq5dVHPdCJmuk1hNA6GM7u7/+cpk7QJzwGSTmksm47TuPcXMGh/0DsmOnLzMlhaQcUqOxdZp6fVb0VyxoSWwwgKp+Ko5VUo+O3N9H62MG4cHRfxII1y1i1+6tHVn+6zX/BjSph25V3aD1GhNYwFcYFwv2k3Z9r1PYvBSASkO6pftcU4LAd5WS9ryT3jajqTBo2lKPviLCsz+sTNcOThiCeeQBB+ctgZUhp0crGXMd3Jqzsv7lNkvveiLQ7OVARHUTY6EkJvet7rPfXxYtwcTCWSZPuonYktK2Wi573/j1LjeolonDpKQSWNpNOucthmm80eRqpKp49N/8DnDCUI43xOLuERj1w1t8cKS/rivZCUS4/p9XwmsKTX7dSwVHkoNOyb3vZvzYZBvyMxqTCmRGIp/DW/BhQsMeVEogr69JiWcHy2p9eNEM80PbfiHeYHphtoZMoZaUZUwMRB/g/CvzB8lJCt1ZlVzPVZH/qyHzmkrWkWXQAkbpeAGP7Pd9XRAPCiRLECe+y7KJA9JRks8pDwTVo+vLEwFsqsIhBDw48fLk7q14Jj30mo0z/W8=
file: deploy/*
on:
repo: ohua-dev/ohuac
tags: true