forked from purescript/purescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
86 lines (80 loc) · 2.13 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
language: c
dist: trusty # because of perf issues
sudo: required
matrix:
include:
# The 'compiler' key is a hack to get Travis to use different caches for
# each job in a build, in order to avoid the separate jobs stomping on each
# other's caches. See https://github.com/travis-ci/travis-ci/issues/4393
#
# We use trusty boxes because they seem to be a bit faster.
- compiler: cc-linux-lts-normal
os: linux
dist: trusty
sudo: required
env: BUILD_TYPE=normal DEPLOY=true
# - compiler: cc-linux-nightly-normal
# os: linux
# dist: trusty
# sudo: required
# env: BUILD_TYPE=normal STACKAGE_NIGHTLY=true
# allow_failures: true
- compiler: cc-linux-ghc8.0-normal
os: linux
dist: trusty
sudo: required
env: BUILD_TYPE=normal STACK_YAML=stack-ghc-8.0.yaml
- compiler: cc-linux-lts-sdist
os: linux
dist: trusty
sudo: required
env: BUILD_TYPE=sdist COVERAGE=true
- compiler: cc-linux-lts-haddock
os: linux
dist: trusty
sudo: required
env: BUILD_TYPE=haddock
- compiler: cc-osx-lts-normal
os: osx
env: BUILD_TYPE=normal DEPLOY=true
- compiler: cc-osx-lts-sdist
os: osx
env: BUILD_TYPE=sdist
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
# Fix the CC environment variable, because Travis changes it
- export CC=gcc
- export OS_NAME=$(./travis/convert-os-name.sh)
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"