Skip to content

Commit b151c8c

Browse files
committed
Update the deploy script
1 parent 41c46a5 commit b151c8c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: python
22
sudo: false
3+
dist: trusty
34
matrix:
45
include:
56
- python: 2.7
@@ -8,11 +9,11 @@ addons:
89
firefox: "62.0.3"
910
chrome: stable
1011
before_install:
11-
- "mysql -u root -e 'CREATE DATABASE IF NOT EXISTS test_db;'"
12-
- "mysql -u root -h 127.0.0.1 -u root test_db < seleniumbase/core/create_db_tables.sql"
12+
- "sudo mysql -e 'CREATE DATABASE IF NOT EXISTS test_db;'"
13+
- "sudo mysql -h 127.0.0.1 -u root test_db < seleniumbase/core/create_db_tables.sql"
1314
- "mysqladmin -u root password test"
1415
# - "mysqladmin -u root -p'old_password' password new_password"
15-
- "service mysql restart"
16+
- "sudo service mysql restart"
1617
install:
1718
- "pip install --upgrade pip"
1819
- "pip install -r requirements.txt --upgrade"
@@ -35,7 +36,7 @@ script:
3536
- "pytest examples/my_first_test.py --browser=firefox -s --headless --with-db_reporting"
3637
- "pytest examples/my_first_test.py --browser=chrome -s --headless --with-db_reporting --demo_mode --demo_sleep=0.2"
3738
- "pytest examples/tour_examples/google_tour.py -s --headless --with-db_reporting"
38-
- "mysql -u root --password=test -e 'select test_address,browser,state,start_time,runtime from test_db.test_run_data'"
39+
- "sudo mysql --password=test -e 'select test_address,browser,state,start_time,runtime from test_db.test_run_data'"
3940
#after_script:
4041
# - "sudo mysql -e 'DROP DATABASE test_db;'"
4142
notifications:

0 commit comments

Comments
 (0)