forked from Polymer/tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (57 loc) · 1.96 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
68
sudo: required
dist: trusty
language: node_js
env:
global:
- secure: IbrybaUaJDiwNh8VodFfTIAdSw2Nl4DGRh2oDIO2vL8SPgGilwxY0go5DWrxAG0aP+YIXFkK+SpblFppQqqxnAoLVYmd7kFSJoOZraNqmcJqUYSzrHrWArmuiGzY8gMgOWTsnbzVVNRldN8tpoSwpQB/+YhCtbYb9eqvw+u5Izk=
- secure: grvHX6c0ReQwRsuQZferI+uyGsKlubujURKuJB8coNdA9lgZcvf+nmCkNBpSML83hSjQkJUTt8XnucNNgL/1VxUhgy0O/wkTUEmcDAU1b80As8NJkbreJcc3HFASA68wou4HoJsFmJV2cpBYoAJJSX+HyT6mYd6pBh09tPfOeBg=
# By default you get two Travis builds for a PR: one that builds the feature
# branch directly (called "branch"), and another that makes a hypothetical merge
# commit on master (called "PR"). The merge build is what really matters, and we
# don't want to waste resources by also building the branch.
branches:
only:
- master
cache:
directories:
- "$HOME/.npm"
install:
- npm i -g npm@latest
- npm ci
- npm run bootstrap
- npm run build
script:
- $TEST_COMMAND
matrix:
include:
- node_js: '8'
env:
- TEST_COMMAND="npm run test:unit"
- node_js: '10'
env:
- TEST_COMMAND="npm run test:unit"
- node_js: '8'
addons:
chrome: stable
firefox: latest
env:
- TEST_COMMAND="xvfb-run npm run test:integration"
- node_js: '10'
addons:
chrome: stable
firefox: latest
env:
- TEST_COMMAND="xvfb-run npm run test:integration"
- node_js: '10'
addons:
sauce_connect: true
env:
# We can't run Sauce without credentials. PRs from forks don't get secure
# environment variables. Only run Sauce if we have those vars. Note this
# means that community PRs never run on Sauce, even when the builds show
# all green.
- WCT_SAUCE=$TRAVIS_SECURE_ENV_VARS
# We don't need to test the local browsers on this WCT integration test
# run. Sauce only.
- SKIP_LOCAL_BROWSERS=true
- TEST_COMMAND="xvfb-run npx lerna run test:integration --stream --scope wct-browser-legacy --scope wct-mocha --scope web-component-tester --scope @polymer/esm-amd-loader --concurrency 1"