Browse Source

fix(travis): Remove travis/bench_init.sh

develop
Aditya Hase 5 years ago
parent
commit
23f24d13dd
  1. 5
      .travis.yml
  2. 8
      travis/bench_init.sh

5
.travis.yml

@ -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:

8
travis/bench_init.sh

@ -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)
)
Loading…
Cancel
Save