-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
61 lines (55 loc) · 3.14 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Use new container infrastructure to enable caching
sudo: false
# Choose a lightweight base image; we provide our own build tools.
language: c
# GHC depends on GMP. You can add other dependencies here as well.
addons:
apt:
packages:
- libgmp-dev
# The different configurations we want to test. You could also do things like
# change flags or use --stack-yaml to point to a different file.
env:
matrix:
- ARGS=""
global:
secure: nGk87m3sb9TcudcmiVixwrwZ4J3pDrUtzYFcXT3Tp2kUikYS8u5/lCisA9nqjM4Fo7AB9xY6bViN6Db9zhlaioqTVAcLM/GiqfwEtUyTGQlTntl8cu5WIbIT/dYIAvDK4nflWNKLF8Lru79BbeS0vUL/wEviDbOETddUiP2Nckox9J4anv0Jrwe/06iTnGE8W2G2L949DDuBX7ruh7mSkevWmye9Ie968JKM0jmAMLNl8N7BwcfWlZaNqXLATe9C0elsyXeh7kJ7UGwUT7UOykgXVLW4CBRC9BwLPsXdGZII8jwnGo8gNgNvoYOIEqGkKG5JqEmeRl7xhts5a52VafW+vXHQvPm6ZT8tU6GuEYzka02Jk2byA38AtFjErzmyZixSyIpUDimV+pMbWP3MhQ4YvPVkCbpG21RqsatfH5rrAwEzb6FDOL2xBdX+quJ482iVsEqn0m1KLGGUfD1WshdyqhRU8rSYDpgNcjaZS4NHBBkh1dnqGgl2jxjpqsBu17b3k/0mmoIed59diHpPuKqHOR18QZ3A/wbqN9O2STyHNEL4cmjYZHPvWm6JTjlfidNMZyaD0oBNw7FPwyMFVIYz1plkQdc+gpCtw0pmi6hnm19JIjtzEtdTH/OpUqIel5+51+ts+DKfvFIeOVHizy4BFCWGv+L9R5EB+Shjn5U=
before_install:
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
# This line does all of the work: installs GHC if necessary, builds the
# library, executables, and test suites, and runs the test suites.
# `--no-terminal works` around some quirks in Travis's terminal implementation.
script: |
export version=$(grep "^version" package.yaml | sed 's/ //g' | cut -d ':' -f 2) &&
echo "building binary version $version" &&
stack $ARGS --no-terminal --install-ghc --haddock test &&
stack $ARGS --no-terminal --install-ghc --haddock install &&
strip $HOME/.local/bin/curl-runnings &&
cd $HOME/.local/bin/ &&
tar -czvf curl-runnings-${version}.tar.gz curl-runnings &&
ln -s curl-runnings-${version}.tar.gz curl-runnings.tar.gz &&
mkdir -p $HOME/cr-release &&
cd $HOME/cr-release &&
ln -s $HOME/.local/bin/curl-runnings-${version}.tar.gz curl-runnings-${version}-linux.tar.gz
cache:
directories:
- $HOME/.stack
addons:
artifacts:
s3_region: "us-west-2"
paths:
- $HOME/.local/bin/curl-runnings.tar.gz
on:
tags: true
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: dWUoi8jGZTsx6hLC6E6sIfj5VjP46FD2wBzMxNdqQ3LCVpBOs8AkHwCoKj5ZzWboHk+3NP4TiQT/ryPg/pKL+8Bp9YWnWO+sSLffJXWv9qM6g6Jx4OXsExR38XD3bL/6goNyiQzS53vjN2XkNsFHl82wBYoRjE9LvB+dGMHrNxFVMfIke3Wd/10pvwwxV+5oBAmyD0jklM3kyqJ2MDvTg0IT6h9XZXh72VgmqBaIOBbfPvrb8E9CtkCAfWHT8Wsjkt9Ga8rp6upV+7UAZrveJKy7Oyvrx++Cd1x/K4ts72veowoomhX5eclUcJxzqd/qTUCNSnE5v9Nms6EON61nfIolWtwQPN93wrqePNYIbP/SZo6z3LjJ/ywfZ95PJEQyfIg1FQUwH55dqwiezhbVu6mnING8TubvcihWBPGeAAhynAtWlSx4BEsAsQLwFZ2EBeqmRVIbo2hAgjDjr8Khm8awY6pupROXDFMuWn6lDKd6i7v7yirEwivrsC6mGjRF2prqRVQV4i6rDawtyZVOVosuUJ39OYHAzXfk+sAUM8nz9zu92neQ3cYrvMysYLlqhq8pGeRGJeypepBWHEEu0H5UepZ/RmXyAx95oPs9HD7LuHqbrMhZd68uGLAwF9v/YvF8OpQyUGKxRCRU7k/1LlMPOMbnhtWsEIH50wSkZEI=
file_glob: true
file: "$HOME/cr-release/*"
on:
tags: true