forked from erlang/otp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
138 lines (127 loc) · 3.99 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
130
131
132
133
134
135
136
137
138
language: c
sudo: false
os:
- linux
dist: xenial
addons:
apt:
packages:
- autoconf
- libncurses-dev
- build-essential
- libssl-dev
- libwxgtk3.0-dev
- libglu1-mesa-dev
- default-jdk
- g++
- xsltproc
- libxml2-utils
matrix:
include:
# Dialyzer is first as it takes the longest to run
- env: Linux64Dialyzer
addons:
apt:
packages:
# Don't build with wx, java or xslt to get faster build
- autoconf
- libncurses-dev
- build-essential
- libssl-dev
script:
- ./scripts/build-otp
- ./scripts/run-dialyzer
# Doc build second as it also takes a long time to run
- env: Linux64Docbuild
script:
- ./scripts/build-otp docs
deploy:
provider: pages
repo: erlang/cd
target-branch: master
skip-cleanup: true
keep-history: false
verbose: true
github-token: $ERLANG_CD_GITHUB_TOKEN
on:
# We only deploy on pushes to branches
all_branches: true
tags: false
condition: $TRAVIS_PULL_REQUEST = "false"
repo: erlang/otp
- env: Linux32
services:
- docker
script:
- ./scripts/build-docker-otp 32 sh -c "scripts/build-otp release && ./otp_build tests && scripts/run-smoke-tests && bin/dialyzer --build_plt --apps erts kernel stdlib"
- env: Linux64SmokeTest
script:
- ERL_COMPILER_OPTIONS=ssalint ./scripts/build-otp
- ERL_COMPILER_OPTIONS=ssalint ./otp_build tests
- ./scripts/run-smoke-tests
- env: Linux-ppc64le-SmokeTest
os: linux-ppc64le
script:
- ./scripts/build-otp
- ./otp_build tests
- ./scripts/run-smoke-tests
addons:
apt:
update: true
packages:
- autoconf
- libncurses-dev
- build-essential
- libssl-dev
- libwxgtk3.0-dev
- libglu1-mesa-dev
- default-jdk
- g++
- xsltproc
- libxml2-utils
- env: Linux-s390x-SmokeTest
arch: s390x
script:
- ./scripts/build-otp
- ./otp_build tests
- ./scripts/run-smoke-tests
addons:
apt:
update: true
packages:
- autoconf
- libncurses-dev
- build-essential
- libssl-dev
- libwxgtk3.0-dev
- libglu1-mesa-dev
- default-jdk
- g++
- xsltproc
- libxml2-utils
# This stage publishes a otp bundle that contains multiple
# Erlang/OTP source repositories
- stage: deploy
env: Deploy
if: tag =~ ^OTP-[0-9]+\.[0-9]+$
script:
- ./scripts/bundle-otp
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: vW5PN6zng5H5+TCvwfwpGZsABrdCWYcFwDm3KXq+plsecBmTayu/0jgNso5Z97FbzDGVTLHWchvywEYQWnmrEByyOrqH73v1LN6JEfN99VpSrdFr15IzhblcyU1R9ugYc3WEoYjX0Q1uGelDSWRuuQOPbzy8mZf3D4rSGonyraP7jPTdHhs5P3ZWk6OMFz+tCdF4XohXqbhXIBOeH/EKg0svX2u5IcV01/YOL8LHWz6G7+gqBryEXx1+ngjQXQmMQwd7Yg3WOKE4XV9gX8ixZsbpUPZXAQKF+VOYdEgeiIr1hI0tBQUYX7FYEzYH5MCxqng5RdaPTOAm1oQroyGkIcWSXzDwN4AhJ7xqa/0NRdEaBPdQzPBCc+pVUDkxBR1ytXjBQqdQMnI6184TDiU5XBnj3kmieLkkKPKQNoPve/Y8Q8zutw4GNc7gixGcQCjtAFUbrT73QVRrezQH0qIdt23rivvf2R7CCOWSmgzowrswmtHdgeEVbodUIBPTNp7qzlUk9gDp6vW0XrOC4qEFI+VaY5PsEOXrrxZmI3gGGJgsbfzRvzvvupQcLNERniJ67r/uumbForpL0x1c65scKuMWwcn1wqt2OLbDoIIuM31Ph2HX/09TTqECU7CTvqLT5MnbZHXGjY9c3ch+sY3tSfaEX6aazl/Dqx28c7boCEw=
file:
- ${TRAVIS_TAG}.0-bundle.txt
- ${TRAVIS_TAG}.0-bundle.tar.gz
on:
# We only deploy on pushes to tags that match the regexp
tags: true
condition: $TRAVIS_TAG =~ ^OTP-[0-9]+\.[0-9]+$
repo: erlang/otp
before_script:
- set -e
- export ERL_TOP=$PWD
- export PATH=$ERL_TOP/bin:$PATH
- export ERL_LIBS=''
- export MAKEFLAGS=-j4