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
5language: python
6
7python:
8  - "2.7"
9
10before_install:
11  - export DISPLAY=:99.0
12  - sh -e /etc/init.d/xvfb start
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)"
16  - GCS="https://commondatastorage.googleapis.com/chrome-unsigned"
17  - curl -s $GCS/desktop-W15K3Y/$CHROME_VER/precise64/chrome-precise64.zip
18    -o /tmp/chrome.zip
19  - unzip -q /tmp/chrome.zip -d /tmp
20
21script:
22 - ./tracing/run_tests --chrome_path=/tmp/chrome-precise64/chrome
23
24# Vulcanize trace_viewer in full & chrome mode & report total size
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
29