Chris Craik | b122baf | 2015-03-05 13:58:42 -0800 | [diff] [blame] | 1 | # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | language: python |
| 6 | |
| 7 | python: |
| 8 | - "2.7" |
| 9 | |
| 10 | before_install: |
| 11 | - export DISPLAY=:99.0 |
| 12 | - sh -e /etc/init.d/xvfb start |
Chris Craik | 24385db | 2015-06-11 11:16:26 -0700 | [diff] [blame] | 13 | - export CHROME_VER=$( |
| 14 | curl -s http://omahaproxy.appspot.com/all | grep linux,stable | cut -d, -f3) |
| 15 | - echo "Downloading Chrome stable channel ($CHROME_VER)" |
Chris Craik | b122baf | 2015-03-05 13:58:42 -0800 | [diff] [blame] | 16 | - GCS="https://commondatastorage.googleapis.com/chrome-unsigned" |
Chris Craik | 24385db | 2015-06-11 11:16:26 -0700 | [diff] [blame] | 17 | - curl -s $GCS/desktop-W15K3Y/$CHROME_VER/precise64/chrome-precise64.zip |
Chris Craik | b122baf | 2015-03-05 13:58:42 -0800 | [diff] [blame] | 18 | -o /tmp/chrome.zip |
| 19 | - unzip -q /tmp/chrome.zip -d /tmp |
| 20 | |
| 21 | script: |
Chris Craik | b2cbf15 | 2015-07-28 16:26:29 -0700 | [diff] [blame] | 22 | - ./tracing/run_tests --chrome_path=/tmp/chrome-precise64/chrome |
Chris Craik | beca7ae | 2015-04-07 13:29:55 -0700 | [diff] [blame] | 23 | |
| 24 | # Vulcanize trace_viewer in full & chrome mode & report total size |
Chris Craik | b2cbf15 | 2015-07-28 16:26:29 -0700 | [diff] [blame] | 25 | - ./tracing/vulcanize_trace_viewer --config=chrome |
| 26 | - ./tracing/vulcanize_trace_viewer --config=full |
| 27 | - stat -c%s tracing/bin/trace_viewer_chrome.html |
| 28 | - stat -c%s tracing/bin/trace_viewer_full.html |