forked from lucidsoftware/rules_play_routes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (60 loc) · 1.7 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
dist: trusty
sudo: required
# xcode8 has jdk8
osx_image: xcode8
# Not technically required but suppresses 'Ruby' in Job status message.
language: java
git:
depth: 1
os:
- linux
- osx
env:
- V=0.22.0
- V=0.23.0
before_install:
# Borrowed from rules_scala
- |
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
OS=darwin
else
sysctl kernel.unprivileged_userns_clone=1
sudo apt-get update -q
sudo apt-get install libxml2-utils -y
OS=linux
fi
if [[ $V =~ .*rc[0-9]+.* ]]; then
PRE_RC=$(expr "$V" : '\([0-9.]*\)rc.*')
RC_PRC=$(expr "$V" : '[0-9.]*\(rc.*\)')
URL="https://storage.googleapis.com/bazel/${PRE_RC}/${RC_PRC}/bazel-${V}-installer-${OS}-x86_64.sh"
else
URL="https://github.com/bazelbuild/bazel/releases/download/${V}/bazel-${V}-installer-${OS}-x86_64.sh"
fi
wget -nv -O install.sh "${URL}"
chmod +x install.sh
./install.sh --user
rm -f install.sh
- cat .bazelrc.travis >> .bazelrc
script:
- ./tools/skylint.sh
#- ./test/run_all_tests.sh ci
- bazel build play-routes:play-routes-docs
- bazel build play-routes-compiler/play-routes-compiler_deploy.jar
- bazel shutdown
# before_deploy:
# - openssl aes-256-cbc -K $encrypted_90964ca3428f_key -iv $encrypted_90964ca3428f_iv -in tools/lemur_rsa.enc -out lemur_rsa -d
deploy:
- provider: script
skip_cleanup: true
script:
- ./tools/ci-stardoc-update.sh
on:
branch: master
condition: $DOC_VERSION = true && $TRAVIS_OS_NAME = linux
- provider: releases
skip_cleanup: true
api_key: $GITHUB_AUTH
file: 'bazel-out/k8-fastbuild/bin/play-routes-compiler/play-routes-compiler_deploy.jar'
on:
tags: true
branch: master