<NME> .travis.yml
<BEF> language: python
sudo: false
python:
  - "2.7"
install:
  - "mysqladmin -u root password test"
  # - "mysqladmin -u root -p'old_password' password new_password"
  - "sudo service mysql restart"
install:
  - "pip install --upgrade pip"
  - "pip install -r requirements.txt --upgrade"
  - "flake8 seleniumbase/*/*/*.py"
  - "flake8 seleniumbase/*/*/*/*.py"
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - "export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
  - "if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
  - "seleniumbase"
  - "seleniumbase install chromedriver"
  # - "seleniumbase install geckodriver"
  - "seleniumbase mkdir browser_tests"
script:
  - "pytest browser_tests/boilerplates/boilerplate_test.py --headless --with-db_reporting"
  - "pytest examples/my_first_test.py --browser=chrome -s --headless --with-db_reporting"
  - "nosetests examples/boilerplates/boilerplate_test.py --browser=chrome --headless"
  # - "pytest examples/my_first_test.py --browser=firefox -s --headless --with-db_reporting"
  - "pytest examples/my_first_test.py --browser=chrome -s --headless --with-db_reporting --demo_mode --demo_sleep=0.2"
  - "pytest examples/test_inspect_html.py --browser=chrome -s --headless --with-db_reporting"
  - "pytest examples/tour_examples/google_tour.py -s --headless --with-db_reporting"
  - "sudo mysql --password=test -e 'select test_address,browser,state,start_time,runtime from test_db.test_run_data'"
#after_script:
#  - "sudo mysql -e 'DROP DATABASE test_db;'"
notifications:
  email: false

<MSG> Update deploy script

<DFF> @@ -1,5 +1,13 @@
+dist: trusty
+sudo: required
 language: python
-sudo: false
+addons:
+  firefox: latest
+  apt:
+    sources:
+     - google-chrome
+    packages:
+     - google-chrome-stable fluxbox
 python:
   - "2.7"
 install:
@@ -12,6 +20,7 @@ before_script:
   - "flake8 seleniumbase/*/*/*.py"
   - "flake8 seleniumbase/*/*/*/*.py"
   - "export DISPLAY=:99.0"
+  - "fluxbox >/dev/null 2>&1 &"
   - "sh -e /etc/init.d/xvfb start"
   - "export PATH=$PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH"
   - "if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"

{'addition_count': 10, 'commit_subject': 'Update deploy script', 'deletion_count': 1, 'file_extension': '.yml', 'lang': 'travis', 'license': 'mit', 'repo_name': 'seleniumbase/SeleniumBase'}