-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (38 loc) · 1.66 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 --ghc-options=-Werror --haddock --no-haddock-deps
before_deploy: "mkdir deploy && mv `stack exec -- which ohua-show` deploy/ohua-show-$TRAVIS_OS_NAME"
deploy:
provider: releases
skip_cleanup: true
file_glob: true
file: deploy/*
api_key:
secure: cV/xUFfOirFLLin/7WzPgKvmjNDFUYPMqDtB4ipNJA+KKNUUz95YwoX64hvdv218uN2fA5g9+41r9NwycPuCuLhf0wzpFreGUG+z/Hs4ZelDsiigGbFOlfZXoWT47+wetTtz2xjGJQK4uxQuFP42awKkiO7GRpJN9M5YcjC4mg+W2JiT9aH4odl9vT/Iu/fVW4OY+uRIfCET9j2GWiTFUhIAsE+Acg2jj19N1bAV/1TN4G+/+7VEmYJ7G14r9HplptO+/Wi/zigt3lXgyR0PsIfiRMybtJ4VhTbITrS6sgReFOK50uX2UrSNeltolj2dScMC2qrJipN+M3Mha8HDZcRLDKh9m3OQIFn3nC+f+TuwTffy7X2xyBHqlf7/uGI+AbatyhKkohQ5HqsmLKrJ+63+1zmSMtCHxI8qEw0zDULOe9gEQISFD1RAPGN6Q+3jmGfQTP+KMfaW/TFetKAnacoSNg7K0Xm1ZC7dhgWSWmmhmALwYsXEn1yeyaH/IvDNQ9nvlfYTUBfLr2Gs2K7JxEqKnTqK7XsL32yPU0zL1HzgfmLIvqFM0BAK0AXNLUtonpvjARg0yExQK5ODbIV9Zjpbwyl4yeebWX2kiHQ+VOXE+s1Q0FoSHOYqJI30OqA2SGMSLqpo9cP1EWly+4pFFymHClMUjyawjhZmugDV/Tg=
on:
repo: ohua-dev/show
tags: true