forked from vaadin/vaadin-time-picker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
51 lines (46 loc) · 1.52 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
sudo: true
dist: trusty
language: node_js
node_js: 8.11
cache:
directories:
- node_modules
addons:
firefox: latest
chrome: stable
env:
- POLYMER=2 TEST_SUITE=unit_tests
- POLYMER=2 TEST_SUITE=visual_tests
- POLYMER=3
script:
- if [[ "$POLYMER" = "2" ]]; then
npm -q i && npm i -q --no-save bower polymer-cli && bower -q i &&
gulp lint version:check &&
polymer lint --rules polymer-2 --input ./src/*.html ./theme/**/*.html &&
if [[ "$TRAVIS_EVENT_TYPE" != "pull_request" && "$TRAVIS_BRANCH" != quick/* ]]; then
if [[ "$TEST_SUITE" = "visual_tests" ]]; then
npm i -q --no-save gemini@^4.0.0 gemini-sauce gemini-polyserve &&
gemini test test/visual
else
wct --env saucelabs;
fi;
else
xvfb-run -s '-screen 0 1024x768x24' wct;
fi &&
if [[ "$TRAVIS_EVENT_TYPE" = "cron" && "$TEST_SUITE" = "unit_tests" ]]; then
wct --env saucelabs-cron;
fi;
fi
- if [[ "$POLYMER" = "3" ]]; then
npm --no-save -q install -g yarn bower magi-cli web-component-tester polymer-modulizer &&
rm -rf node_modules &&
magi p3-convert --out . --import-style=name &&
yarn install --flat &&
if [[ "$TRAVIS_EVENT_TYPE" != "pull_request" && "$TRAVIS_BRANCH" != quick/* ]]; then
wct --module-resolution=node --npm --env saucelabs;
else
xvfb-run -s '-screen 0 1024x768x24' wct --module-resolution=node --npm;
fi;
fi
after_success:
- "cat ${TRAVIS_BUILD_DIR}/coverage/lcov.info | coveralls"