forked from vaadin/vaadin-checkbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (62 loc) · 1.82 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
sudo: false
dist: trusty
language: node_js
node_js: 8.11
cache:
directories:
- node_modules
addons:
firefox: latest
chrome: stable
jobs:
include:
- if: type = push
env: TEST_SUITE=unit_tests POLYMER=2
- if: type = push
env: TEST_SUITE=visual_tests POLYMER=2
- if: type = push
env: TEST_SUITE=unit_tests POLYMER=3
- if: type = pull_request
env: POLYMER=2
addons:
firefox: latest
chrome: stable
- if: type = pull_request
env: POLYMER=3
addons:
firefox: latest
chrome: stable
- if: type = cron
env: TEST_SUITE=unit_tests POLYMER=2
script:
- if [[ "$POLYMER" = "2" ]]; then
npm -q i && npm i -q --no-save bower polymer-cli && bower -q i &&
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
npm run check &&
npm run lint &&
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 --npm --env saucelabs;
else
xvfb-run -s '-screen 0 1024x768x24' wct --npm;
fi;
fi
after_success:
- "cat ${TRAVIS_BUILD_DIR}/coverage/lcov.info | coveralls"