Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit 0a9216c

Browse files
Install firefox using the travis ci firefox addon instead of messing with apt ourselves
1 parent 88a340e commit 0a9216c

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

.travis.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ node_js:
33
- "node"
44
env:
55
global:
6-
- TEST_FIREFOX_BIN=/usr/bin/firefox
6+
- TEST_FIREFOX_BIN="${TRAVIS_HOME}/firefox-latest-unsigned/firefox/firefox"
77
- TEST_HEADLESS=1
88
dist: xenial
99
install:
@@ -19,16 +19,8 @@ jobs:
1919

2020
- stage: test
2121
env: TEST_SUITE=unit,integration
22-
# the firefox deb download from the ppa is very very slow (~3 minutes), cache it
23-
cache:
24-
directories:
25-
- /home/travis/apt-firefox-cache
26-
before_install:
27-
- sudo add-apt-repository -y ppa:ubuntu-mozilla-daily/firefox-aurora
28-
- sudo chown --recursive root /home/travis/apt-firefox-cache
29-
- sudo apt-get update
30-
- sudo apt-get install -o dir::cache::archives=/home/travis/apt-firefox-cache --no-install-recommends -y firefox
31-
- sudo chown --recursive travis /home/travis/apt-firefox-cache
22+
addons:
23+
firefox: latest-unsigned
3224
script:
3325
- '"$TEST_FIREFOX_BIN" --version'
3426
- npm run test:unit:coveralls

0 commit comments

Comments
 (0)