Skip to content

Instantly share code, notes, and snippets.

@cbfrance
Created April 26, 2017 00:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbfrance/ec917d957b7d729711360bbc6c35abca to your computer and use it in GitHub Desktop.
Save cbfrance/ec917d957b7d729711360bbc6c35abca to your computer and use it in GitHub Desktop.
Slimer on Travis
language: ruby
rvm:
- 2.3.3 #reasonably recent
env:
- SLIMERJSLAUNCHER=$(which firefox) DISPLAY=:99.0 PATH=$TRAVIS_BUILD_DIR/slimerjs:$PATH #for slimer
addons:
firefox: "50.0" # for slimer
cache: bundler # Cache rubygems to speed up the build
before_script:
- . $HOME/.nvm/nvm.sh # Enable node installation
- nvm install stable # Install node
- nvm use stable # Use node
- npm install # Install project dependencies
- npm install -g casperjs slimerjs@0.10.3 a11y # Install dependencies which prefer to be global
- sh -e /etc/init.d/xvfb start # start xvfb for slimer
script: npm run test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment