fix(travis): Remove travis/bench_init.sh

This commit is contained in:
Aditya Hase 2019-07-25 21:15:30 +05:30
parent 3f6ac2d993
commit 23f24d13dd
2 changed files with 3 additions and 10 deletions

View File

@ -36,8 +36,9 @@ install:
- git clone https://github.com/frappe/bench --depth 1
- pip install -e ./bench
- rm $TRAVIS_BUILD_DIR/.git/shallow
- bash $TRAVIS_BUILD_DIR/travis/bench_init.sh
- git clone https://github.com/frappe/frappe --branch $TRAVIS_BRANCH --depth 1
- bench init --frappe-path ~/frappe --python $(which python) frappe-bench
- cp -r $TRAVIS_BUILD_DIR/test_sites/test_site ~/frappe-bench/sites/
before_script:

View File

@ -1,8 +0,0 @@
#!/bin/bash
cd ~/
curl -I https://github.com/frappe/frappe/tree/$TRAVIS_BRANCH | head -n 1 | cut -d $' ' -f2 | (
read response;
[ $response == '200' ] && branch=$TRAVIS_BRANCH || branch='develop';
bench init frappe-bench --frappe-path https://github.com/frappe/frappe.git --frappe-branch $branch --python $(which python)
)