-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
43 lines (35 loc) · 916 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
43
sudo: false
language: c
cache:
directories:
- $HOME/.stack
addons:
apt:
packages:
- libgmp-dev
before_install:
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- mkdir /tmp/stack_dl
- travis_retry curl -L -o /tmp/stack_dl/stack.tar.gz https://www.stackage.org/stack/$PLATFORM
- tar xzfv /tmp/stack_dl/stack.tar.gz -C /tmp/stack_dl --strip-components=1
- mv /tmp/stack_dl/stack ~/.local/bin/
install:
- stack --no-terminal --skip-ghc-check setup
script:
- stack --no-terminal --skip-ghc-check install
before_deploy:
- mv "$HOME/.local/bin/$PROJECT" "$HOME/$PROJECT-$PLATFORM"
deploy:
provider: releases
api_key: $GH_TOKEN
file: "$HOME/$PROJECT-$PLATFORM"
skip_cleanup: true
on:
tags: true
matrix:
include:
- env: PROJECT=prismic-backup PLATFORM=linux-x86_64
- env: PROJECT=prismic-backup PLATFORM=osx-x86_64
os: osx