2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-08 00:04:38 +00:00

[Travis] Bypass the prompt while purging mysql

This commit is contained in:
shreyas 2016-03-14 11:38:59 +05:30
parent 4851619838
commit 04de9cd7a7
2 changed files with 4 additions and 4 deletions

View File

@ -6,9 +6,7 @@ python:
- "2.7"
install:
- sudo apt-get remove --purge --force-yes mysql-common mysql-server mysql-client
- sudo apt-get autoremove
- sudo apt-get autoclean
- sudo apt-get purge -y mysql-common mysql-server mysql-client
- sudo python $TRAVIS_BUILD_DIR/installer/install.py --user travis --skip-bench-setup
# - sudo bash $TRAVIS_BUILD_DIR/install_scripts/setup_frappe.sh --skip-install-bench --mysql-root-password travis
- mkdir -p ~/bench-repo

View File

@ -10,7 +10,9 @@
- localhost
- name: Add .my.cnf
template: src=my.cnf.j2 dest=/root/.my.cnf owner=root group=root mode=0600
command: '/usr/bin/whoami'
register: current_user
template: src=my.cnf.j2 dest=/home/{{ current_user }}/.my.cnf owner=root group=root mode=0600
- name: Set root Password
mysql_user: name=root host={{ item }} password={{ mysql_root_password }} state=present