-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
35 lines (34 loc) · 1.43 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
language: generic
cache:
directories:
- $HOME/.stack
matrix:
include:
- os: linux
- os: osx
before_install:
- curl -sSL https://get.haskellstack.org/ | sh
- git submodule sync
- git submodule update --init
install:
- stack setup --no-terminal
- stack build --test --no-terminal --no-run-tests --only-dependencies -j 2
script:
- stack build --test --no-terminal --no-run-tests
- stack test --no-terminal
- stack build --copy-bins --local-bin-path ./bin
- |
mkdir -p uploads
os="$(uname -s | tr '[:upper:]' '[:lower:]')"
tar -czvf "uploads/dhall-fly-$TRAVIS_TAG-$os.tgz" bin/dhall-fly
deploy:
provider: releases
skip_cleanup: true
draft: true
api_key:
secure: arQb7Hlsw7Gy/LeXngYziFt2whexwKxomKsEX2POjTdSbbCpsqo5rh90XUd5+k5eEsQNdQ5Ck4lG7Du7ufOBOhNbDW34siWXbTnl8J9Wa2iC99D9RbNSsFAUorHCcDm5pE4h99fBynR+frUDB/Rm15Rc9Nd21yZkG/0bHD6HdXzfBq36QrN0VDVxWfeiST+ErxINxdNx8GAzFdgg5uh54xnFlOBjDahAzdN/hTkdE+28pW9imu8QABHiXpNLpBmgiyma97Zt7XmhErZfwhhCiANn7lLe8Pazdoq9gQIzbTihunYWFtPdL84LUVJyPSe2qolQs0zWf9UpSlV3+bKEewOFyED8Mr79lshAlZW99kC4Z7VcM70VnR23YZe6zWAIUHJUPObspvI8kO1YTAmo+9Hyk044AcRPuGbUqrejCgMBJ8IpM0E4SSkrCY7fzOlrsEVf3r3oVLKOKDFLkTBY57ECaRf8bKHKh1HbhXC7a9iJyXPk6I1VcD00fkPyeIZITsgP+K4DKRRmf3oRYddE+QVJ8YmLlnE72NBXV2SESSiU4bnrwFXEDjpvb834UKgXm++wJt3K2JKdgZlYZHAXfyayz4DUvnRXPvjfyJPZ3XJH1r2pu9L3+ALaeB4YLWc/zGNUiKgktRbD5g5xdMt5kAydCdIRAcJ6Y9XYZJtMfZw=
file: uploads/*
file_glob: true
on:
tags: true
condition: $TRAVIS_OS_NAME == osx