forked from peernova-private/vaadin-upload
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (29 loc) · 972 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
32
33
34
35
sudo: true
dist: trusty
language: node_js
node_js: 8.0
cache:
directories:
- node_modules
addons:
firefox: latest
google-chrome: latest
# Temporary fix, currently there are some weird timeout issues in Travis with Chrome 59
# TODO @limonte revisit after Chrome 60 release
before_install:
- wget http://mirror.glendaleacademy.org/chrome/pool/main/g/google-chrome-stable/google-chrome-stable_58.0.3029.110-1_amd64.deb
- sudo dpkg -i google-chrome*.deb
install:
- npm install
- polymer install --variants
before_script:
- gulp lint
- polymer lint --rules polymer-2-hybrid --input *.html
- xvfb-run -s '-screen 0 1024x768x24' polymer test
script:
- if [[ "$TRAVIS_EVENT_TYPE" != "pull_request" && "$TRAVIS_BRANCH" != quick/* ]]; then
xvfb-run -s '-screen 0 1024x768x24' polymer test --env saucelabs;
fi
- if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
xvfb-run -s '-screen 0 1024x768x24' polymer test --env saucelabs-cron;
fi