language: ruby

branches:
  except:
    - gh-pages

rvm:
  - 2.1.1
  - 2.1.0
  - 2.0.0

before_install:
  - pwd
  - wget http://ipecho.net/plain -O - -q ; echo # print out external ip

  - sudo apt-get install chromium-browser unzip

  - wget http://chromedriver.storage.googleapis.com/2.9/chromedriver_linux64.zip -P ~
  - unzip ~/chromedriver_linux64.zip -d ~
  - chmod +x ~/chromedriver
  - sudo ln -s ~/chromedriver /usr/local/bin/chromedriver
  - sudo ln -s ~/chromedriver /usr/bin/chromedriver
  - which chromedriver

  - gem update --system
  - gem update

  - gem install sass compass jekyll kramdown cucumber selenium-webdriver

  - gem --version
  - sass --version
  - compass --version
  - firefox --version
  - phantomjs --version

before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - sleep 3 # give xvfb some time to start

  - compass compile ./assets/css/
  - rake jekyll detach=true
  - sleep 3 # give Web server some time to bind to sockets, etc

script:
  - rake unittests
  - rake cucumber
language: ruby

branches:
  except:
    - gh-pages

rvm:
  - 2.1.1
  - 2.1.0
  - 2.0.0

before_install:
  - pwd
  - wget http://ipecho.net/plain -O - -q ; echo # print out external ip

  - sudo apt-get install chromium-browser unzip

  - wget http://chromedriver.storage.googleapis.com/2.9/chromedriver_linux64.zip -P /tmp
  - unzip /tmp/chromedriver_linux64.zip -d /tmp
  - chmod +x /tmp/chromedriver
  - sudo ln -s /tmp/chromedriver /usr/local/share/chromedriver
  - sudo ln -s /tmp/chromedriver /usr/local/bin/chromedriver
  - sudo ln -s /tmp/chromedriver /usr/bin/chromedriver
  - which chromedriver

  - gem update --system
  - gem update

  - gem install sass compass jekyll kramdown cucumber selenium-webdriver

  - gem --version
  - sass --version
  - compass --version
  - firefox --version
  - phantomjs --version

before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - sleep 3 # give xvfb some time to start

  - compass compile ./assets/css/
  - rake jekyll detach=true
  - sleep 3 # give Web server some time to bind to sockets, etc

script:
  - rake unittests
  - rake cucumber
Use /tmp instead of ~ for downloading chromedriver
Use /tmp instead of ~ for downloading chromedriver
