-
Notifications
You must be signed in to change notification settings - Fork 45
/
.travis.yml
62 lines (61 loc) · 1.32 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
62
language: c
dist: trusty # because of perf issues
sudo: required
matrix:
include:
# We use trusty boxes because they seem to be a bit faster.
- os: linux
dist: trusty
sudo: required
env: BUILD_TYPE=normal DEPLOY=true
- os: osx
env: BUILD_TYPE=normal DEPLOY=true
addons:
apt:
packages:
- libgmp-dev
cache:
directories:
- $HOME/.local/bin
- $HOME/.stack
install:
- | # Install stack.
if test ! -f "$HOME/.local/bin/stack"
then
URL="https://www.stackage.org/stack/$TRAVIS_OS_NAME-x86_64"
curl --location "$URL" > stack.tar.gz
gunzip stack.tar.gz
tar -x -f stack.tar --strip-components 1
mkdir -p "$HOME/.local/bin"
mv stack "$HOME/.local/bin/"
fi
- npm install -g bower # for psc-docs / psc-publish tests
- export OS_NAME=$(./travis/convert-os-name.sh)
# Install 'timeout'
- |
if [ "$TRAVIS_OS_NAME" == "osx" ]
then
if ! which gtimeout >/dev/null
then
brew update
brew install coreutils
fi
export TIMEOUT=gtimeout
else
export TIMEOUT=timeout
fi
script:
- travis/build.sh
before_deploy:
- ./bundle/build.sh $OS_NAME
deploy:
provider: releases
api_key: $RELEASE_KEY
file:
- bundle/$OS_NAME.tar.gz
- bundle/$OS_NAME.sha
skip_cleanup: true
on:
all_branches: true
tags: true
condition: "$DEPLOY = true"