Skip to content

Commit

Permalink
Update dependencies, drop Opera and Chrome Canary (#120)
Browse files Browse the repository at this point in the history
* Update to latest dependencies

* Bump version to 6.0.0

* Use node 8

* Small changes

* Travis tweaks

* Add sudo back

* dist: trusty

* Try to get OS X working

* Small tweaks

* Removes Chrome unstable

* Added a comment

* Remove package-lock.json

* Tweak to before_script

* Add a pretests install step

* Tweak npm test

* More node versions in the build matrix

* Take two?

* Another try
  • Loading branch information
jeffposnick authored Jul 30, 2019
1 parent c95fa49 commit 143ed3f
Show file tree
Hide file tree
Showing 33 changed files with 3,636 additions and 3,267 deletions.
56 changes: 34 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
sudo: required
dist: trusty
language: node_js
cache:
directories:
- node_modules
os:
- linux
- osx

# This is needed to make NVM happy on OS X https://github.com/travis-ci/travis-ci/issues/6476
osx_image: xcode7.3
language: node_js

node_js:
- '6'
- '8'
env:
global:
- COVERALLS_PARALLEL=true
Expand All @@ -22,14 +10,38 @@ notifications:
webhooks: https://coveralls.io/webhook?repo_token=COVERALLS_REPO_TOKEN

install:
- npm install

# Read more here: https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start || echo \"Unable to start virtual display.\""
- sleep 3 # give xvfb some time to start
- npm ci

script:
- npm run istanbul
- npm run coveralls
- npm run test

matrix:
include:
- name: "Linux (Legacy Node)"
os: linux
dist: trusty
node_js:
- 8
before_script:
# Read more here: https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start || echo 'Unable to start virtual display.'"
- sleep 3 # give xvfb some time to start
- name: "Linux (Latest Node)"
os: linux
dist: trusty
node_js:
- node
before_script:
# Read more here: https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start || echo 'Unable to start virtual display.'"
- sleep 3 # give xvfb some time to start
- name: "OS X (Latest Node)"
os: osx
node_js:
- node
before_script:
# See https://github.com/GoogleChromeLabs/selenium-assistant/issues/118
- "sudo /usr/bin/safaridriver --enable"
- "sudo defaults write com.apple.Safari AllowRemoteAutomation 1"
4 changes: 0 additions & 4 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ To use **Google Chrome**:

npm install chromedriver --save-dev

To use **Opera**:

npm install operadriver --save-dev

To use **Firefox**:

npm install geckodriver --save-dev
Expand Down
Loading

0 comments on commit 143ed3f

Please sign in to comment.