-
Notifications
You must be signed in to change notification settings - Fork 230
/
.travis.yml
62 lines (57 loc) · 2.88 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
# The scala/scala travis job triggers a build of scala/scala-dist with `mode=release`. For
# the other modes (see below), use the web UI to trigger a build.
#
# Additional env vars are defined using a `before_install` custom config(*), for example
# before_install: export version=2.12.N scala_sha=abc123 mode=release
#
# Available modes:
# - `release` to build native packages and upload them to S3
# - `archives` to copy archives to chara (for scala-lang.org)
# - `update-api` to update the scaladoc api symlinks
#
# (*) Using an `env: global: ...` section does not work because that overrides the default `env`
# from .travis.yml. For releases triggered with the REST API we could use the "merge mode", but
# not when triggering from the web UI. Anyway, `before_install` works well.
# we need rpmbuild but it's unlikely to be whitelisted, according to
# https://github.com/travis-ci/apt-package-whitelist/pull/1700
sudo: required
dist: xenial
install:
- sudo apt-get -qq update
- sudo apt-get install -y rpm
language: scala
jdk: openjdk8
env:
global:
# PRIV_KEY_SECRET
- secure: "NlnFqZs4mvCi63GqCdUNDsx9BoiyrjgoV0cUaKlhVYp49/qAMlEaKf6JABWy/oCHoWsTyysyLEtZLsWfjAyE4+FUHSzngNUHVFBbtyudA6aKQ7jMsqkcMM/K0h+ymnhHSv8bugc8jXKFgmfYk4YTi5dZgv8CAOSQFAFUaxVdYTY="
# APPVEYOR_TOKEN (login with GitHub as lrytz, use the scala organization)
- secure: "aHM0UWkbFN0bXQja2f9lUcSgqHzXYkYqqV8/nP5MTLKJG8BpuaLYxI4gHfkPmxSm9/TTniA3zUVN//lJTvhco5J5Dtxfo5DeCLWsjQcQxrsgAFD97FpMpGbtFAViZuiv7SdPGvzXQY6AwvteBpxOday4T224aH5OjZJ0DxySx8Q="
# TRAVIS_TOKEN (login with GitHub as SethTisue)
- secure: "KzcB0qrsnD0o4iBW2dI/5uoHoPF8EVJpC+T+caA76WaXKRqVwr996FM83ky7XDeUjwop2bBtoIIiWXoTFqCI/oyIYggcdhphmdnq9IKGG3LXD49QUq60MRSRc+jAg3RY0TPQ/f4qcZaLfa0PHGN79n1DbYlSeZfwSg+xKlZ2f/8="
# AWS_ACCESS_KEY_ID
- secure: "BrsLFLXLdJ3aesJGuoVXFdKluYl7QYBYjn5+ttoep2nc6/E+L3UDaR//ztxwex4a9yFi5q2jCs911FzVsk78ODamr5w8FBlOuu06RoVx642+U/agG7yUdAtvEzH2KVTBNjY0oYHZ+OlVEkeYgnkrsbfki+ujPWEnxkakWyrGtJw="
# AWS_SECRET_ACCESS_KEY
- secure: "dv0pR9uqnLyKVHu1L1nvl5TVpo3bOxh4icLNybwFyCFQd9XiM/RU8Vhx3svZqqnAG+GiCDSiCaBQkTLUS5u9e+9eVw3cUj5meNr9EW673f8D6H8Tr433jlvu54CynD9DsBjhNo/xIrECOKTq+0wu480OLSjOkuNoclG2dSm4Dis="
# GITHUB_OAUTH_TOKEN (for GitHub user scala-jenkins, same token as scabot)
- secure: "KetupmuH5L7nJjouavdPpvuc7imL9T01zI/OdTYhzOmuTSHV8tP6TVykRcVl73ZBkEre+Es7TYw46HjlhTqGtj//6V+8XCNZ4hIt1IYEA2v+IBmIBCtuVnZdlY09/DqM8vxZjhnLFhjQlTvkCZdzc1lfzN1AVtceUvKqJpnzGS0="
script:
- source scripts/common
- postCommitStatus "pending"
- admin/build.sh
after_script:
- |
if [[ "$TRAVIS_TEST_RESULT" == "0" ]]; then
local state="success"
else
local state="failure"
fi
postCommitStatus $state
cache:
directories:
- $HOME/.ivy2
- $HOME/.sbt/boot
- $HOME/.sbt/launchers
before_cache:
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm