-
Notifications
You must be signed in to change notification settings - Fork 481
/
.travis.yml
75 lines (73 loc) · 3.1 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
#
# Copyright 2018 Google Inc.
#
# 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
#
# https://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.
#
matrix:
include:
- name: "Google java format validation"
# Validate with Google Java Style
language: java
before_script:
- wget https://github.com/google/google-java-format/releases/download/google-java-format-1.7/google-java-format-1.7-all-deps.jar
script:
- find . -iname "*.java" | xargs java -jar google-java-format-1.7-all-deps.jar --dry-run
- name: "Java (Gradle)"
language: java
script:
- ./gradlew check --info
- name: "AngularJS"
# The AngularJS flow below is customized. There is some nodejs setup to do as well as
# configuration to use the version of Chrome that is installed in Travis images.
dist: xenial
language: node_js
node_js:
- '8.9'
cache:
directories:
- ./client-rest/node_modules
before_script:
- cd client-rest
- npm install
- npm install -g karma
- npm install -g @angular/cli
script:
- ng test --no-watch --no-progress --browsers=ChromeHeadless --environment local
- npm run webdriver-update-ci
- ng e2e --protractor-config=e2e/protractor.conf.js --webdriver-update=false
- name: "Demo image"
# This task will build our demo docker image. It will also deploy the image to docker hub,
# on merges to master only.
services:
- docker
- xvfb
before_script:
- cd client-rest
- npm install
- npm install -g @angular/cli
- cd ..
script:
- ./gradlew :distributions:demo-server:dockerize
deploy:
- provider: script
script: bash scripts/docker_push.sh
skip_cleanup: true
on:
branch: master
addons:
chrome: stable
notifications:
slack:
secure: U+Xfg5/isDKa6JWpy98kauwcirWDAGlmVYcqBRkNBztH6uKvpJQX94Ftj3ciRyWU4f2Dm+fmBRtMnCsRBOied7XK8r+J/MFL7E+jP3FHT/3v/sRROhS15nX3vPPJDVMpU5G3UDe2d1n8VE6RyK6a6bGvOaFFBnt9WLdyoKKmM2gmR6ie/iBIJlQdYy4nMuu8Q0ExDuEX6gWCAyCzl9iC3uUHHOPCCuQPiEDD9zN17UYI+kbcYNjIbVJItyjGG9W3oBcVZm7Rn8mpB+kaV33iioMqz6oUC5vzPjwDw0vVk9AivZH1GQDhDvuJMFvFgJ5w7lj+rV6J6c9RvpHpMTZGFy4Fx7HoaTukqO53g74Vz63c9ql/L+hRXbkO7pkfB4PQJSpdF0Dc7Zq8hRZMcoMo6YW0+zYH0PtSESMo4+FK8WtmBtRwKcWCAaPdsDsYtnhj3ezjLijEqeKuk98AaV11Dik+C6/xmhmmfWqe+JizmSnCrRQz4h7H/2vsX8KSDip8hftvimjRkx0nYLsEwEjy7k5QmFsJ8zK47XJPUxiEimW86xoOP9Jesvtx+Ns+vRNa6wqXok2WM5cwD2oYQ7xdopBh98rQdrQiKnwFU6NE8us1tyKNwnJ2xuNrXbt+7PcJodCXTIlOkQIIAGUQx2CAR4TLAk564e/hqD+GW9102zw=
on_success: change # default: always
on_failure: always # default: always