-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (35 loc) · 921 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
36
37
38
39
40
41
sudo: true
dist: trusty
language: node_js
node_js: 8.9
cache:
directories:
- node_modules
addons:
firefox: latest
chrome: stable
install:
- npm install
- bower install
before_script:
- gulp lint version:check
- polymer lint --rules polymer-2 --input ./src/*.html ./theme/**/*.html
- xvfb-run -s '-screen 0 1024x768x24' wct
env:
- TEST_SUITE=visual_tests
- TEST_SUITE=unit_tests
script:
- if [[ "$TRAVIS_EVENT_TYPE" != "pull_request" && "$TRAVIS_BRANCH" != quick/* ]]; then
if [[ "$TEST_SUITE" = "visual_tests" ]]; then
npm i --no-save gemini@^4.0.0 gemini-sauce gemini-polyserve &&
gemini test test/visual;
fi &&
if [[ "$TEST_SUITE" = "unit_tests" ]]; then
wct --env saucelabs;
fi;
fi
- if [[ "$TRAVIS_EVENT_TYPE" = "cron" ]]; then
if [[ "$TEST_SUITE" = "visual_tests" ]]; then
wct --env saucelabs-cron;
fi;
fi