-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
35 lines (35 loc) · 1.28 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
addons:
apt:
packages:
- libgmp-dev
before_install:
- sh script/install-stack.sh
cache:
directories:
- "${HOME}/.local/bin"
- "${HOME}/.stack"
- ".stack-work"
env:
global:
- CASHER_TIME_OUT=1000
- BUILD="jetpack-${TRAVIS_OS_NAME}.tar.gz"
language: nix
os:
- linux
- osx
sudo: false
script:
- stack setup
- stack test
- stack build --ghc-options -O2
- tar zcvf "${BUILD}" -C "$(stack path --local-install-root)/bin" jetpack
- nix-shell --command script/format.sh
deploy:
provider: releases
api_key:
secure: Uuk1YmJNwJ3DPMzT3pAjEHx6Gn5cR8bR09hKQmt/FihlasHpIfiNHEn72LMQsntOQoNNjN+VYaKpIsfZ2w8TNKVn648SHfb0zSEZ+XjhPWX6EQtN1DZd4LyChgSyHllZuNERmbaL7+NWuM9w1ItKzWVZ6ZU7Mj3jKIGkhWrCkroPKG9Z3zXNgdtT+LGbHVSBdVyQhEQTFYxeHSAONQXB/UqZYMJxzzdr8cjtfJkBN7O8lP/8AhSj0ofcJEINTiM/T9UcpxGtLe8CV2ZJdc8DNN/wejcqAj9FqHwSR6By3SwrRLBJIFtKkz1zQTTOc8jUGU2PiINiHnaYtCN4ciXwH+QZyGIGJJ1vORv3vUo1HWqENmFaurlgQOVNOc+MQleTTnxr4VmrUkMyAjb8siKlhPfkbtcDFq/fd/0rheuEY6pfCy8+yyIdRet9p4nvPyZ6LS+rGasiCCVrf5d493G0DR+8/FzGANrwWYJztizzUvhjU4mqhyY+BEsGzTiHjhxlnmRQZKrHO2+fQQZNJ+eyBZXW+w6fx6Q50yi8xhm7LHVMkUrhf3/LHeIcEECsvPBNB6uGdvfPKIq+8iVaEvy/I/VQC+npq7JPOdeBDlCy6yf7AMu04K9ok1VWY4SokZDzqTQtXXwQzxsT9Z/M7wEHgZS8ZSf42KZmb5eKj3evNVU=
file: "${BUILD}"
skip_cleanup: true
on:
repo: NoRedInk/jetpack
tags: true