Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Switch to Firefox at Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Mar 25, 2017
1 parent 96aaf3e commit 0e360f2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
dist: trusty
language: python
git:
depth: 5
addons:
postgresql: 9.3
firefox: latest
before_install:
- git branch -vv | grep '^*'
- pwd
Expand All @@ -12,11 +14,20 @@ before_install:
- git clone -b "2.1.0" --depth 1 https://github.com/lloyd/yajl.git && cd yajl && ./configure && sudo make install && cd ..

- npm install marky-markdown

# For ttw tests
- wget https://github.com/mozilla/geckodriver/releases/download/v0.15.0/geckodriver-v0.15.0-linux64.tar.gz
- mkdir -p geckodriver
- tar -xzf geckodriver-v0.15.0-linux64.tar.gz -C geckodriver
- export PATH="geckodriver:$PATH"
- geckodriver --version
- firefox --version
cache:
directories:
- env/bin
- env/lib/python2.7/site-packages
- node_modules
- geckodriver
install:
- if [ "${TRAVIS_BRANCH}" = "master" -a "${TRAVIS_PULL_REQUEST}" = "false" ]; then rm -rf env; fi
- touch requirements.txt package.json
Expand All @@ -27,7 +38,7 @@ before_script:
- echo "REQUIRE_YAJL=true" | tee -a tests/local.env local.env
- psql -U postgres -c 'CREATE DATABASE "gratipay";'
- if [ "${TRAVIS_BRANCH}" = "master" -a "${TRAVIS_PULL_REQUEST}" = "false" ]; then rm -rfv tests/py/fixtures; fi
script: LD_LIBRARY_PATH=/usr/local/lib make bgrun test doc -j2
script: LD_LIBRARY_PATH=/usr/local/lib xvfb-run make bgrun test doc -j2
notifications:
email: false
irc: false
2 changes: 1 addition & 1 deletion requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
./vendor/wrapt-1.10.2.tar.gz
./vendor/vcrpy-1.1.3.tar.gz

./vendor/selenium-2.53.6.tar.gz
./vendor/selenium-3.3.1.tar.gz
./vendor/splinter-0.7.3.tar.gz

./vendor/imagesize-0.7.1.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion tests/test.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DATABASE_URL="dbname=gratipay-test"
BASE_URL=
WEBDRIVER_BROWSER="phantomjs"
WEBDRIVER_BROWSER="firefox"
WEBDRIVER_BASE_URL="http://localhost:8537"
UPDATE_HOMEPAGE_EVERY=0
CHECK_DB_EVERY=0
Expand Down
Binary file removed vendor/selenium-2.53.6.tar.gz
Binary file not shown.
Binary file added vendor/selenium-3.3.1.tar.gz
Binary file not shown.

0 comments on commit 0e360f2

Please sign in to comment.