forked from GoogleChrome/workbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (33 loc) · 1002 Bytes
/
.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
sudo: required
dist: trusty
language: node_js
cache:
directories:
- node_modules
- ~/.selenium-assistant
node_js:
- 'stable'
env:
- PROJECT="workbox-background-sync"
- PROJECT="workbox-broadcast-cache-update"
- PROJECT="workbox-build"
- PROJECT="workbox-webpack-plugin"
- PROJECT="workbox-cache-expiration"
- PROJECT="workbox-cli"
- PROJECT="workbox-sw"
- PROJECT="workbox-google-analytics"
- PROJECT="workbox-precaching"
- PROJECT="workbox-routing"
- PROJECT="workbox-runtime-caching"
install:
- npm install -g gulp-cli
- npm install
- gulp lerna-bootstrap-scoped --project="${PROJECT}"
# Read more here: https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start || echo \"Unable to start virtual display.\""
- sleep 3 # give xvfb some time to start
script:
# Building is handled in gulp test.
- gulp test --project "${PROJECT}"