Skip to content

Commit c4d0929

Browse files
author
bmcculley
committed
google chrome install
1 parent 45afdae commit c4d0929

2 files changed

Lines changed: 19 additions & 7 deletions

File tree

.travis.chrome.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
# Holy shit batman!
4+
# https://github.com/travis-ci/travis-ci/issues/938
5+
# https://github.com/travis-ci/travis-ci/issues/2555
6+
7+
sudo apt-get install -y python-software-properties
8+
sudo apt-add-repository "deb http://dl.google.com/linux/chrome/deb/ stable main"
9+
sudo sed -i s/deb-src.*google.*//g /etc/apt/sources.list
10+
wget -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
11+
sudo apt-get update -qq
12+
sudo apt-get install -y google-chrome-stable
13+
14+
sudo chmod 1777 /dev/shm

.travis.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22
# Use of this source code is governed by a BSD-style
33
# license that can be found in the LICENSE file.
44

5-
sudo: false
5+
sudo: required
6+
before_install:
7+
- export DISPLAY=:99.0
8+
- sh -e /etc/init.d/xvfb start
9+
- ./.travis.chrome.sh
610
cache: pip
711
addons:
812
firefox: "latest"
9-
apt:
10-
sources:
11-
- google-chrome
12-
packages:
13-
- google-chrome-stable
1413
language: python
1514
python:
1615
- "2.7"
@@ -36,7 +35,6 @@ matrix:
3635
- python: 3.5
3736
env: DRIVER=tests/test_zopetestbrowser.py
3837
install:
39-
- export DISPLAY=:99.0
4038
- export PATH=$HOME:$PATH
4139
- ./travis-install.bash
4240
- make dependencies

0 commit comments

Comments
 (0)