Skip to content

Commit

Permalink
Adding a script to run in headless
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdevel committed May 31, 2014
1 parent 27a9bff commit 07944a9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
18 changes: 18 additions & 0 deletions .travis-start.bash
@@ -0,0 +1,18 @@
#!/bin/bash

TRAVIS=true

export DISPLAY=:99.0

#Xvfb :99 -screen 0 1920x1200 > /dev/null 2>&1 &
Xvfb :99 -ac -screen 0 1280x1024x24 &

xvfbPid=$!
echo $xvfbPid

WEBDRIVER_SYNC_ENABLE_SELENIUM_STDOUT=true
WEBDRIVER_SYNC_ENABLE_SELENIUM_STDERR=true

npm test

kill $xvfbPid
5 changes: 1 addition & 4 deletions .travis.yml
Expand Up @@ -18,11 +18,8 @@ before_install:
- "sudo wget https://googledrive.com/host/0B5VlNZ_Rvdw6NTJoZDBSVy1ZdkE -O $CHROME_SANDBOX"
- "sudo chown root:root $CHROME_SANDBOX; sudo chmod 4755 $CHROME_SANDBOX"
- "sudo md5sum $CHROME_SANDBOX"
- "export DISPLAY=:99.0"
- "Xvfb :99.0 -extension RANDR > /dev/null &"
- "sudo chmod 1777 /dev/shm"
- "WEBDRIVER_SYNC_ENABLE_SELENIUM_STDOUT=true"
- "WEBDRIVER_SYNC_ENABLE_SELENIUM_STDERR=true"
- "./.travis-start.bash"
install: "npm install"
cache:
directories:
Expand Down

0 comments on commit 07944a9

Please sign in to comment.