Skip to content

Commit af8dbd0

Browse files
wardpeetpaulirish
authored andcommitted
misc(travis): Only build on Node 6 for PRs. Don't do the push build for non-master.
1 parent d5fa452 commit af8dbd0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
sudo: required
22
language: node_js
3+
branches:
4+
only:
5+
- master
36
matrix:
47
include:
58
- node_js: "6.9.1"
69
- node_js: "8"
10+
if: head_branch IS blank AND branch = master
711
- node_js: "9"
12+
if: head_branch IS blank AND branch = master
813
dist: trusty
914
cache:
1015
yarn: true
@@ -13,10 +18,6 @@ cache:
1318
- lighthouse-extension/node_modules
1419
- lighthouse-viewer/node_modules
1520
- /home/travis/.rvm/gems/
16-
before_install:
17-
# TODO: remove after yarn is 1.0+ on Travis: https://github.com/travis-ci/travis-ci/issues/7566
18-
- curl -o- -L https://yarnpkg.com/install.sh | bash
19-
- export PATH="$HOME/.yarn/bin:$PATH"
2021
install:
2122
- yarn
2223
# travis can't handle the parallel install (without caches)
@@ -27,6 +28,8 @@ before_script:
2728
- sh -e /etc/init.d/xvfb start
2829
- yarn build-all
2930
script:
31+
- echo $TRAVIS_EVENT_TYPE;
32+
- echo $TRAVIS_BRANCH
3033
- yarn bundlesize
3134
- yarn lint
3235
- yarn unit

0 commit comments

Comments
 (0)