-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
31 lines (29 loc) · 994 Bytes
/
.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
language: node_js
sudo: 'false'
dist: trusty
node_js: node
addons:
firefox: latest
chrome: stable
before_script:
- npm install -g polymer-cli
- git checkout package-lock.json
- >-
npm run format && git diff --exit-code || (echo -e '\n\033[31mERROR:\033[0m
Project is not formatted. Please run "npm run format".' && false)
script:
- xvfb-run polymer test --module-resolution=node --npm
- >-
>-
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then polymer test
--module-resolution=node --npm -s 'default';
fi
env:
global:
- secure: >-
U9eM5fb0hFe+fSGxSYjdqePJDa8FXtrW73agG2tyq97DIRKgZt8S+BoVzINEqHcbd72K8ewseoJ3Gur962QnpNMN8Te5Iku+Lli7XYoNVHhUhiq4yl5sEfKkDd5cHLDJh43nRU9yy5f7SQ0G0pHV+hxbjlcphvqFjRaxhs2IQfI=
- secure: >-
CLP3Fkt8gmCZUMiOuj0VGcRNMT1o4ae5y/LRJV4TJjLMD/58iXkPhVQ+AZDUBKcHPYdKvlv0IbPTc4K5m2XDznS9ucwmVUiZgvnUhLC83OyQ9j3ZjS/lSNkRqCK1o1vtMUx5x+p3IfgStAL988ODGA2OsZzvsnWqfmkjsxcFiyA=
cache:
directories:
- node_modules