Skip to content

Commit

Permalink
chore: add windows to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce committed Nov 15, 2019
1 parent 28ba174 commit 1877283
Showing 1 changed file with 35 additions and 24 deletions.
59 changes: 35 additions & 24 deletions .travis.yml
@@ -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

0 comments on commit 1877283

Please sign in to comment.