-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
129 lines (121 loc) · 5.96 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
language: go
go: 1.5
sudo: false
branches:
except:
# feature branches (in the format <ISSUE-ID>-<NAME>) are not built
- /^\d+-.*/
os:
- linux
- osx
env:
global:
- STACK_ARGS=""
# AWS keys
-
secure: "I6mzKIPHRli8/O/ABi7gT7Pun13OY14EVeo7fmw8+b+AUcRvEB0vB0pl1iWTTv3Lp2gfWBnC8lTktfKrrBFh0AjisEBEuZjP57iDenFp+aj2kGCnOvfNQYofKSdEtoOF4WJ4pAqV9LXYMhiqLbnroQ7H0plZb9ZywZr5LyMPHWaFtvpnK/F2vjW7mzuE/dUWsd+p9RDmJJnvfQ9hXtSP8pGAvZjFfgEreM/AoAVWbz7s7PxQdvAVdnS3mDud286rglzW2BX6KjzvdAZ0CGQ93aPDLJ8Z6qv5v8emi3uqpiOMgBm0/Zc0GHnjY/m4SEqyI3SW4gI93BzblYhZMM4fLShlXW4ukiuWpuo+2eiOMT167q9wQpZ8skefC3Q4KZjaA4r1Csj7mNcVhDVF6dAsThzwYiJYslVQxDK0qwecYH/gMoZHomfRt/qJpoirT/rcvwLVLOE5c1EJ2J3lZ6mQYaJEgu2DuyInt4kATH+LCj7tTk1AQ7/J/pyndYZg2gAruRsDG3hd3xwl98cEgGQN3DW9PhmHdBwDLfesd6hhm8P4fJhQekJNinXS/SSZV8y70foB0EKw1binfs5iT9oIZzu7dL2xs5FFWFia44gYVQmQDH5vlb9kHOq1xbVvZ9XO7HRwQIqq9y2WRA0DcIHecVXlvt3Yp5+VOhUYwFAN45M="
-
secure: "irj/QXrgmoB6N5SrsAJGfry4EPjnNv1ELglnJNRanHS+ihGuN/7TRl9PO8mJRVwHYq8eTMuvZ/VRYCIOAogwjDIpTOwnVxSnlWqcHzqRQB1LLdJ9roMXZZYEetulVduosy8f1oCtqYmNBlabhfouU05Hblk+s6qEbua3PqRJS5U7J7IKqlkR77moSqHHuL1BpoEE/R4mVpS8ON67R+1h4UhNpowvHlgdh/2Ir3+2HSwzd5OCmAyqferZI55XdCTcjJq/7e3CQA1RsZ3offtOjN3o1P6z4E1rideDtAw8VJbcMyBaRI3TtVCMiyXt0T7+0VmcI9RMb2sR0vSC8dysHlfnS2USZfQAnzRTJS6ksEXqZiUAgJ8w93JUswmXCezNqwaDLixmx15u7Pfhv9OhUEp/ZwLvFCC8ENtptGc21FLuQV/fwhORw7NGnkf3l8My5SW83jyJFWX0udFyD/maINOyYfPERHo/ibUml5Cr651AoigGqBmdufgtQ0UYLXCajvedozTuz5fN+LgBmoe66WcJbMf7RW7EzEthQKuF4td/ad35Z7LY2cOJS4T+578vwFTDT4jENRJ2f+GKjBVmOynN9XKpbhDpuF+TG8n9+1DWczke92dy//H/mChFuZQQvPOeyNSRqqIX/K/BaVNK/ppEg22YlT+EXu2v5lA0ljM="
addons:
apt:
sources:
- hvr-ghc
packages:
- cabal-install-1.22
- ghc-7.10.3
- alex-3.1.4
- happy-1.19.5
- nodejs-legacy
before_install:
- export PATH=/opt/ghc/7.10.3/bin:/opt/cabal/1.22/bin:$PATH
- export PATH=/opt/alex/3.1.4/bin:$PATH
- export PATH=/opt/happy/1.19.5/bin:$PATH
- export PATH=$HOME/.cabal/bin:$PATH
# Install OSX dependencies.
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then travis_retry brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then travis_retry brew install ghc cabal-install pcre; fi
# Download and unpack the stack executable
- export PATH=/opt/ghc/7.10.3/bin:$HOME/.local/bin:$PATH
- mkdir -p ~/.local/bin
- |
if [ `uname` = "Darwin" ]
then
curl --insecure -L https://www.stackage.org/stack/osx-x86_64 | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin
else
curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
fi
- travis_retry stack setup
# Install Pandoc
- travis_retry stack --no-terminal install pandoc pandoc-citeproc
install:
- travis_retry stack --no-terminal --install-ghc $STACK_ARGS test --only-dependencies
script:
- travis_retry stack build
- export VERSION=branch-job-$TRAVIS_JOB_NUMBER
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then export VERSION=pull-request-job-$TRAVIS_JOB_NUMBER;
fi
- if [[ "$TRAVIS_TAG" != "" ]]; then export VERSION=$TRAVIS_TAG; fi
# Add PDF links when this is a release build.
- if [[ "$TRAVIS_TAG" != "" ]]; then export INCLUDE_PDF_LINKS=1; fi
# Build
- travis_retry make doc dist ci-test
cache:
apt: true
directories:
- $HOME/.ghc
- $HOME/.cabal
- $HOME/.stack
deploy:
- provider: releases
api_key:
secure: f8vgUN0ng9BWeBO/WcNzIS11BDDyNF/qFHqs0WsxHnausDAC91O1VPEayDpNE5MUHIgLDgLGVl7NE34lHvVTnTVkC2drM8pXVVSSaS+ZSkaCajeMZ82nK30OK36MwUXpOu6FJ/zkRX+8hiQbysRemTvh+w4xXNTb7eBBMs+50wFmxB6oon3zLcd9uR1N8QQ9Vxor8Mb7W5KIkjFnUHPrxfw1KByUw+6rgug+OYoDRSLSCmxiULzPRWeHbKdtGvd9kNhXQQc9KCc8UGfkG0C/TPBdtXqRDoQ/4Szevy6zK8wNK/FyMuKAw1JtX7qy7IBtsQgkavqDKEz61+CxppBN92q+aWcS6QxuJ0nHhtJ82dWNRiM5/xoEC96/tHOgXU/VDNtfZttT68AwWurU4dgZxBwUPzcps2x+R076CVnyQZ+84m1KTTzFr0xCyI+rglmHca1REfqYdZ3/th6WRXUMjHROO6mM9ZNK4EgAAGRVJVYBsdIneMSjklaD32fgfmZnMqxKhOqWe2cOzK7yhrOy8BdUnIG8D7ihM2wyS3n/VG7FWI2LwZrZ7doV1v32wgLeCN0Eqqu5Gbx26BBCOD7k30ik7iGAd0VnDQ10vE6ccLNY9ACZYXdXMLLOBjuZ9UWFc3Udm5M5Z1vjCq0D0AGcTohHeSA4VA/LaaiDDM/pCEU=
file: build/oden-$TRAVIS_TAG-$TRAVIS_OS_NAME.tar.gz
skip_cleanup: true
on:
tags: true
repo: oden-lang/oden
# one for the specific version
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_ACCESS_KEY_SECRET
local_dir: build/doc/user-guide
bucket: "docs.oden-lang.org"
upload-dir: $VERSION
region: "eu-west-1"
acl: public_read
skip_cleanup: true
on:
condition: $TRAVIS_OS_NAME = linux
tags: true
repo: oden-lang/oden
# and one for the "latest" version
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_ACCESS_KEY_SECRET
local_dir: build/doc/user-guide
bucket: "docs.oden-lang.org"
upload-dir: "latest"
region: "eu-west-1"
acl: public_read
skip_cleanup: true
on:
condition: $TRAVIS_OS_NAME = linux
tags: true
repo: oden-lang/oden
# and one for the current "master" version
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_ACCESS_KEY_SECRET
local_dir: build/doc/user-guide
bucket: "docs.oden-lang.org"
upload-dir: "master"
region: "eu-west-1"
acl: public_read
skip_cleanup: true
on:
condition: $TRAVIS_OS_NAME = linux
branch: master
repo: oden-lang/oden
notifications:
slack:
secure: CzIDDPphI227LamRZdSmjyDZijMyJVBvtSpMKRh/S7C19T9HbwbD7DUh8Aiif5V4L4VFbd/Pp21/D7WPY4bf9+Iv7wVD9NAUwPaZ/elkk310bcqEuShSsGY8YhUwaz68CU89APLs318qSntE8X3YQ+xWp9NRJBw+eJXAosrKFWn8a29sJdbfGlhKU8pZ6OnUDIlXaX254zcr/OcQZl9dnrN20XsCuMN693gI1gKgA1fQyKC29wfUy7RICmOajq3pHKG9YDMdNnYJRddsw9Yh8h8xiICoTLE9Bb54GzZMTzm15/BSqhHTQ/wHQbDkKmjN0CQyuoexnaMX++oCHGg6Uz8pUNIMcIow8pAklqTKodqfB4r0rhMPrx7CC+ASLZp5bXp/AxocP7fINq/4XqP4ny4ufl8cuTJPt/1MgtOqisHIQhBk//duspAfcqGBT7sIN77Cd5FmbbTl7VpliZnvIhPVInZPpatBksQaQ7MOXkayjmBiQgzwS1SH3kX277WAI1boaV2LHlnRy2aACrMP7uBdp7EJjzsQVWLqUS4YM0UzBV8a/vlrisrAm+lMkzTt7QaJVOJEhTpK83o9qBx7OG5FIBovIl0q/4bcpsmL271H9jBvARFbF1/Ng9znvbvmYd8tEh6uZb5XfC+r9jURGnGFDKf2kP5SRHMEHN4wC/I=