forked from facebook/flow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
102 lines (89 loc) · 3.34 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
sudo: false
env:
global:
# GH_BOT_TOKEN (facebook-github-bot-0)
- secure: I1W8xlf8Ojxkc92n8Rb9AGX7kdCk0DeWEPd6PKRrGQO0FtyCkcvxNo+wp6ApQI7+NqkuFRVngHVOQOd3AqR57IFiSjZ+Cj/BJyg6WOo92olkAAP0OWihmCj53d2xDpp7LaM99srPbZXYE5vSTTKBX/5Soz9UghzsI5Q1ECmV5fU=
# AWS_ACCESS_KEY_ID
- secure: HMGkDgbay0TcQtiCm5K4F1Y8trtMT5X5S8nRGrTrKBuI4RIEkTQ06VdQVf96gnhe/7IjDQfAUbXWspSmlpWbIKij4BRHOijezU37sooNUkQp4R+EfPpbJECnuv+4WqZI2bMj2i3sw3b8f1oNCFztzHrpxZQ9oOeQbenf/8c2fQs=
# AWS_SECRET_ACCESS_KEY
- secure: huLKjE7xlxl7HaCLIIVyDaZN9ZsWrR4RcxW+JNUH1F9lM5mbRjAPayawSKRzHViu7u6uUNkjMOJs3lRlWdj8ezH2vnJNm9oNvCOYuSFmBIBELVlXcfbqpX9ZffbJeFiUZ2dOwrDEhm3+WIg6Wr3QbUtVdlMfNvljOJ3CQQc9Yc4=
# CLOUDFRONT_ID
- secure: Jr+6c6pF5H0lP4Kt6evlf/xYD/Qjoms3HK7lw1kg8lzwoEXPD3MezgkpOktU8ZBllGolc+ou23h+3hgJwvqi7ANmjzfxyVDdpB7Kiw4y2pEm6tAXYzmatSDb401u7+2sb2H/aSe8yikNrVrizvqaJrDOGeptCBjXQF+a2lNeMC0=
# NOTE: We set the compiler to a bogus "no-op" bash command (":") to work around
# a Travis caching limitation: the cache slug only depends on the compiler name,
# not any other environment vars, so we fake the compiler name to change the
# cache slug. Using `language: cpp` ensures that the `CC` env is set to `gcc`
# instead of our bogus value.
#
# Alternatively, if Travis had ocaml support, it would presumably include the
# ocaml version in the slug like it does for other languages.
#
# See https://github.com/travis-ci/travis-ci/issues/4393
language: cpp
matrix:
include:
- compiler: ": Linux, ocaml 4.02.1, opam 1.2.0"
os: linux
env: OCAML_VERSION=4.02.1 OPAM_VERSION=1.2.0
- compiler: ": Linux, ocaml 4.01.0, opam 1.2.0"
os: linux
env: OCAML_VERSION=4.01.0 OPAM_VERSION=1.2.0
- compiler: ": Linux, ocaml 4.02.1, opam 1.1.1"
os: linux
env: OCAML_VERSION=4.02.1 OPAM_VERSION=1.1.1
- compiler: ": Linux, ocaml 4.01.0, opam 1.1.1"
os: linux
env: OCAML_VERSION=4.01.0 OPAM_VERSION=1.1.1
- compiler: ": Mac, ocaml 4.02.1, opam 1.2.0"
os: osx
env: OCAML_VERSION=4.02.1 OPAM_VERSION=1.2.0
addons:
apt:
packages:
- libelf-dev
- aspcud
install: bash -e resources/travis/install_deps.sh
script: bash -e resources/travis/build.sh
after_success: bash -e resources/travis/after_script.sh
after_failure: bash -e resources/travis/after_script.sh
before_deploy: bash -e resources/travis/before_deploy.sh
cache:
directories:
- $HOME/.flow_cache
before_cache:
- rm -rf $HOME/.flow_cache/ocaml-*/.opam/log
deploy:
# upload releases to github, from both Mac and Linux
- provider: releases
api_key:
# facebook-github-bot-0
secure: I1W8xlf8Ojxkc92n8Rb9AGX7kdCk0DeWEPd6PKRrGQO0FtyCkcvxNo+wp6ApQI7+NqkuFRVngHVOQOd3AqR57IFiSjZ+Cj/BJyg6WOo92olkAAP0OWihmCj53d2xDpp7LaM99srPbZXYE5vSTTKBX/5Soz9UghzsI5Q1ECmV5fU=
repo: facebook/flow
skip_cleanup: true
file_glob: true
file: flow-*.zip
on:
tags: true
condition:
- $OCAML_VERSION = 4.02.1
- $OPAM_VERSION = 1.2.0
# Deploy the website
- provider: script
repo: facebook/flow
script: bash -e resources/travis/deploy.sh
skip_cleanup: true
on:
all_branches: true
condition:
- $TRAVIS_TAG != "" || $TRAVIS_BRANCH = "master"
- $TRAVIS_OS_NAME = linux
- $OCAML_VERSION = 4.02.1
- $OPAM_VERSION = 1.2.0
notifications:
email:
recipients:
irc:
channels:
- "chat.freenode.net#flowtype"
on_success: change