forked from lucidsoftware/closure-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (45 loc) · 1.68 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
# Copyright 2014 The Closure Library Authors. All Rights Reserved.
#
# Use of this source code is governed by the Apache License, Version 2.0.
# See the LICENSE file for details.
language: node_js
sudo: required
# This is required for Java 8 in non-java image
dist: trusty
cache:
directories:
- node_modules
install:
# We need jdk8 for JsDossier; but this needs to come first because
# otherwise there is no java at all.
- jdk_switcher use oraclejdk8
- ./scripts/ci/install_closure_deps.sh
before_script:
- ./scripts/http/simple_http_server.py 2> /dev/null & sleep 5
- ./scripts/ci/sauce_connect.sh
# Ensure we point to the version of clang-format that we installed in
# install_closure_deps.sh. Travis has an older version on the $PATH and
# clang-format-diff.py invokes "clang-format" with no option of specifying
# a binary path.
- export PATH=$PWD/../clang/bin/:$PATH
# Make a directory for gh-pages; will be used by both generate_latest_docs.sh
# and deploy_latest_docs.sh.
- export GH_PAGES=$(mktemp -d)
script:
- ./scripts/ci/generate_latest_docs.sh
- ./scripts/ci/compile_closure.sh
- ./scripts/ci/lint_pull_request.sh
- ./scripts/ci/check_code_format.sh
- travis_wait 30 ./scripts/ci/run_all_tests.sh
after_success:
- ./scripts/ci/push_latest_docs.sh
env:
global:
- SAUCE_USERNAME=closure-sauce
- SAUCE_ACCESS_KEY=dfd98f70a612-e69a-ad34-6149-3ca056f8
- secure: "aEv7CF6ZvD2Fa67yv6yYtgFGjafCkpSP2Y+Dk2AyJCFLF3+L5ZFXpFoCtgYgCWezVDbeGpoojFeCzLu0ycWwnIwJpUQ/C8NBDR/x2Lqz2I6M2PfkEy91UhSE5nXe1RJMnna1715zeBmustiFKjdETWFZrpvxkHixBHbLfY3cJZw="
addons:
apt:
packages:
# Required for jdk_switcher use oraclejdk8
- oracle-java8-installer