This repository has been archived by the owner on Feb 26, 2020. It is now read-only.
forked from sitespeedio/browsertime
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
73 lines (73 loc) · 2.94 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
69
70
71
72
73
language: node_js
node_js:
- '10'
sudo: required
dist: trusty
cache:
apt: true
pip: true
directories:
- "$HOME/.npm"
- $HOME/.local/lib/python2.7/site-packages
- /usr/local/lib/python2.7/site-packages
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: "ppa:mc3man/trusty-media"
packages:
- ffmpeg
- google-chrome-stable
- ipython
- ipython-notebook
- libjpeg-dev
- libatlas-base-dev
- gfortran
- python
- python-dev
- python-imaging
- python-numpy
- python-scipy
- python-matplotlib
- python-pandas
- python-pip
- python-sympy
- python-nose
- ttf-ubuntu-font-family
- xz-utils
firefox: 'latest'
before_install:
- python -m pip install --upgrade --user pip
- python -m pip install --upgrade --user setuptools
- python -m pip install --user pyssim
- python -m pip install --user pytest
- python -m pip --version
- python -m pip show Pillow
- python -m pip show pyssim
- sudo snap install ffmpeg
- ffmpeg -version
- python --version
- firefox --version 2>/dev/null
- google-chrome --product-version
before_script:
- export DISPLAY=:99.0
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile
--background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1600x1024x16
install:
- npm ci
script:
- pytest -sv vendor/test_visualmetrics.py
- npm run eslint-check && npm run lint
- node ./bin/browsertime.js -b firefox -n 1 https://www.sitespeed.io --connectivity.profile cable --connectivity.engine throttle
- node ./bin/browsertime.js -b chrome --skipHar -n 1 --preURL https://www.sitespeed.io/ -r header:value --chrome.CPUThrottlingRate 2 --chrome.cdp.performance https://www.sitespeed.io/documentation/
- node ./bin/browsertime.js -b chrome -vv --viewPort=640x480 --video --screenshot --connectivity.engine tsproxy -c cable
--visualMetrics -n 1 --chrome.timeline --videoParams.fontPath /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf --visualElements --chrome.collectLongTasks https://www.sitespeed.io/
- node ./bin/browsertime.js -b chrome test/navigationscript/measure.js -n 1 --preScript test/prepostscripts/preSample.js --postScript test/prepostscripts/postSample.js
- node ./bin/browsertime.js -b chrome test/navigationscript/navigateAndStartInTwoSteps.js -n 1
- node ./bin/browsertime.js -b firefox test/navigationscript/multi.js https://www.sitespeed.io/blog/ -n 1
- node ./bin/browsertime.js -b chrome test/navigationscript/multi.js -n 3 --chrome.timeline --video --visualMetrics --videoParams.fontPath /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf --visualElements
- node ./bin/browsertime.js -b firefox --firefox.geckoProfiler -n 1 https://www.sitespeed.io/
- npm run test
notifications:
slack:
secure: V71EkIzwOf/fZnGTGIKAIFlDyLUit4tK97VDgdV9vZ7CbvOXI1ir3lwRZ57lNqiYD8BUaX+/wKDG+LyrBMgQ4JAGgQx0mECvmOKx1+10Yg9FAkUsMTWe7GOxcVMwhpS2OfHnXwMb0FjcuVl8ovowIZqCWOLeEAYVaTWHndDm2cA=