forked from kubernetes/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (58 loc) · 2.81 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
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Travis continuous integration system configuration file.
#
# Overview on how to customize the configuration is located at:
# http://docs.travis-ci.com/user/customizing-the-build/
# Sudo-enabled Ubuntu Trusty environment. https://docs.travis-ci.com/user/trusty-ci-environment/
sudo: required
dist: trusty
# Use Node.js as primary language because Gulp is the build system used in the project.
language: node_js
# Cache downloaded Node.JS modules & Bower frontend dependencies for faster builds.
cache:
directories:
- node_modules
- bower_components
- .tools
addons:
# Run tests that require a browser on SauceLabs CI provider. Learn more at: https://saucelabs.com
sauce_connect: true
# Enables sauce labs for pull requests
jwt:
secure: NfCHCQULhYH0JUobRTBGF4QuQxMoj0Zs9iH71oSgI+eW7ClpNDp0cEF8h+IelTdPGQY7T9Kz4tyrZkUeXD5Mi/jjZT0YnjxSS8Ip6rRRxPDCWEmxbhOrZTEBXYfa4vqCY7rLnor8g579WOZ+RyoiotPC8tlc955nEgBk1jDxyAgXoUy0SdA/05r6A2IqKfs95u+yq0nsYqYJBj/3onx2SQv94eMQ7qq9GMhsAWMoNzLsBfU8AkZLsJ2w/W2p9tQURNk1hgCEewMwe6E6+G3XMAnDoIXBHkRAU335FBUE+f2kZ5Gl3GKE8pvWJaUWLePzfBvlmzCi4GW6lPlrRE5m+3wiiSzcbEAJnWOVPBrD/6mogYaJ5RijKzWk5o91eV8lU/lttp0hpH7PdWj1CEZk7EmyKO7ZF7ScALOZgs/dGyGgWcAvA0zwCDzdxXIitq9Eegc0xU+bB9jyJgi4dV9H1T1prwtS/TdhBU6sXKEjFVIgPUQa/TqBgaSs634kqRueH3bNfSD8Nf655AFeSgwdGiW0pBDm/WESftFWBMW3eV+KYtBFmGU/b3g+eEmd04j+lIOkK6EzU1QetUCKhpeMc5509So/+k4XghPHldWYzRldpY0kbp32VnAY8egsDdAHxgPrs2mTIDD1W//D/XJI9J072/z47GN4Af5zryz/3Nc=
matrix:
include:
# Job 1 - Local cluster + integration tests
- node_js: 7.7.3
env: BUILD_SUITE=cluster-test SAUCE_USERNAME=k8s-dashboard-ci
# Job 2 - Code tests (frontend + backend)
- node_js: 7.7.3
env: BUILD_SUITE=code-test SAUCE_USERNAME=k8s-dashboard-ci
before_script:
# Install go 1.7.1. It is not there by default.
- eval "$(gimme 1.7.1)"
- docker --version
script:
- 'if [ ${BUILD_SUITE} = "cluster-test" ]; then
./node_modules/.bin/gulp check:local-cluster --heapsterServerHost "http://localhost:8082";
else
./node_modules/.bin/gulp check:code-quality;
fi'
after_success:
- 'if [ ${BUILD_SUITE} = "cluster-test" ]; then
./node_modules/.bin/gulp ci-push-to-docker:head:cross;
else
./node_modules/.bin/gulp coverage-codecov-upload;
fi'