Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28ba174
commit 1877283
Showing
1 changed file
with
35 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,44 @@ | ||
sudo: required | ||
dist: xenial | ||
language: node_js | ||
branches: | ||
only: | ||
- master # Only build master and PRs | ||
matrix: | ||
include: | ||
- node_js: '10' | ||
- node_js: '11' | ||
git: | ||
depth: false # ensure we have full git history for our build-context.js tests | ||
cache: | ||
yarn: true | ||
directories: | ||
- node_modules | ||
before_script: | ||
- google-chrome-stable --version | ||
- export CHROME_PATH="$(which google-chrome-stable)" | ||
- export POSTGRES_DB_URL="postgres://postgres@localhost/lighthouse_ci_test" | ||
- psql -c 'create database lighthouse_ci_test;' -U postgres | ||
script: | ||
- yarn build | ||
- yarn test | ||
- yarn ci:dogfood | ||
before_cache: | ||
# nyc, jest and other projects store files in here. They mess up the travis build cache. | ||
- rm -rf ./node_modules/.cache/ | ||
services: | ||
- postgresql | ||
- xvfb | ||
addons: | ||
chrome: stable | ||
stages: | ||
- test | ||
jobs: | ||
include: | ||
- &base-test | ||
os: osx | ||
language: node_js | ||
node_js: v10 | ||
stage: test | ||
script: | ||
- yarn build | ||
- yarn test | ||
before_cache: | ||
# nyc, jest and other projects store files in here. They mess up the travis build cache. | ||
- rm -rf ./node_modules/.cache/ | ||
addons: | ||
chrome: stable | ||
- <<: *base-test | ||
os: windows | ||
- &linux-test | ||
<<: *base-test | ||
os: linux | ||
language: node_js | ||
node_js: v10 | ||
before_script: | ||
- google-chrome-stable --version | ||
- export CHROME_PATH="$(which google-chrome-stable)" | ||
- export POSTGRES_DB_URL="postgres://postgres@localhost/lighthouse_ci_test" | ||
- psql -c 'create database lighthouse_ci_test;' -U postgres | ||
services: | ||
- postgresql | ||
- xvfb | ||
- <<: *linux-test | ||
node_js: v12 | ||
after_success: yarn ci:dogfood |